소스 검색

Merge branch 'fix/xlsx-multiple-spans' of https://github.com/minimum2scp/xlsx into minimum2scp-fix/xlsx-multiple-spans

Geoffrey J. Teale 12 년 전
부모
커밋
e4e890e676
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      lib.go

+ 2 - 2
lib.go

@@ -532,8 +532,8 @@ func readRowsFromSheet(Worksheet *xlsxWorksheet, file *File) ([]*Row, int, int)
 			rows[insertRowIndex-minRow] = new(Row)
 			insertRowIndex++
 		}
-		// range is not empty
-		if len(rawrow.Spans) != 0 {
+		// range is not empty and only one range exist
+		if len(rawrow.Spans) != 0 && strings.Count(rawrow.Spans, ":") == 1 {
 			row = makeRowFromSpan(rawrow.Spans)
 		} else {
 			row = makeRowFromRaw(rawrow)