diff options
author | xuri <xuri.me@gmail.com> | 2020-11-18 22:08:40 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2020-11-18 22:08:40 +0800 |
commit | 92c8626f814c3bcb91e30f83de8e68c9b8bb9a5f (patch) | |
tree | 86fec139f87ffbbad0ea3f136a622beb1c189ac2 /excelize.go | |
parent | 2be4bfd410744201f96e79804ef644d26c47f49f (diff) |
Fixed #732, support single line with repeated row element in the sheet data
Diffstat (limited to 'excelize.go')
-rw-r--r-- | excelize.go | 8 |
1 files changed, 7 insertions, 1 deletions
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 |