From 92c8626f814c3bcb91e30f83de8e68c9b8bb9a5f Mon Sep 17 00:00:00 2001 From: xuri Date: Wed, 18 Nov 2020 22:08:40 +0800 Subject: Fixed #732, support single line with repeated row element in the sheet data --- excelize.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'excelize.go') diff --git a/excelize.go b/excelize.go index 5069756..bcae481 100644 --- a/excelize.go +++ b/excelize.go @@ -219,11 +219,17 @@ func checkSheet(ws *xlsxWorksheet) { row = r.R continue } - row++ + if r.R != row { + row++ + } } sheetData := xlsxSheetData{Row: make([]xlsxRow, row)} row = 0 for _, r := range ws.SheetData.Row { + if r.R == row { + sheetData.Row[r.R-1].C = append(sheetData.Row[r.R-1].C, r.C...) + continue + } if r.R != 0 { sheetData.Row[r.R-1] = r row = r.R -- cgit v1.2.1