diff options
author | xuri <xuri.me@gmail.com> | 2022-01-09 00:20:42 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2022-01-09 00:20:42 +0800 |
commit | 2245fccca0beb25a1bf309a1c9cbd273512f125a (patch) | |
tree | 737ced5abd6cf452662268cf1ae2b76edf8ed03c /adjust.go | |
parent | af5c4d00e81b62a3f6ff6cb34a89502400552a2d (diff) |
Typo fix, rename exported constants, dependencies modules and copyright update
Rename exported constants `NameSpaceDublinCoreMetadataIntiative` to `NameSpaceDublinCoreMetadataInitiative`
Diffstat (limited to 'adjust.go')
-rw-r--r-- | adjust.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,4 +1,4 @@ -// Copyright 2016 - 2021 The excelize Authors. All rights reserved. Use of +// Copyright 2016 - 2022 The excelize Authors. All rights reserved. Use of // this source code is governed by a BSD-style license that can be found in // the LICENSE file. // @@ -81,13 +81,13 @@ func (f *File) adjustRowDimensions(ws *xlsxWorksheet, row, offset int) { for i := range ws.SheetData.Row { r := &ws.SheetData.Row[i] if newRow := r.R + offset; r.R >= row && newRow > 0 { - f.ajustSingleRowDimensions(r, newRow) + f.adjustSingleRowDimensions(r, newRow) } } } -// ajustSingleRowDimensions provides a function to ajust single row dimensions. -func (f *File) ajustSingleRowDimensions(r *xlsxRow, num int) { +// adjustSingleRowDimensions provides a function to adjust single row dimensions. +func (f *File) adjustSingleRowDimensions(r *xlsxRow, num int) { r.R = num for i, col := range r.C { colName, _, _ := SplitCellName(col.R) |