1
0
mirror of https://github.com/fumiama/go-docx.git synced 2026-06-17 15:30:27 +08:00

add: wpc & more w:ln

This commit is contained in:
源文雨
2023-03-01 21:26:05 +08:00
parent 1b84ef3cf2
commit fa6f03aaff
8 changed files with 235 additions and 11 deletions

2
id.go
View File

@@ -2,7 +2,7 @@ package docx
func (f *Docx) IncreaseID(name string) (n uintptr) {
f.slowIDsMu.Lock()
n, _ = f.slowIDs[name] //nolint: go-staticcheck
n = f.slowIDs[name]
n++
f.slowIDs[name] = n
f.slowIDsMu.Unlock()