Skip to content

Commit

Permalink
Merge branch 'nmaupu-fix-weird-spacing'
Browse files Browse the repository at this point in the history
  • Loading branch information
oneplus1000 committed Sep 10, 2022
2 parents dc28503 + e862a0b commit 58fc4ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions list_cache_content.go
Expand Up @@ -43,17 +43,17 @@ func (l *listCacheContent) appendContentText(cache cacheContentText, text string
//start add text
cacheFont.text += text

//re-create contnet
//re-create content
textWidthPdfUnit, textHeightPdfUnit, err := cacheFont.createContent()
if err != nil {
return x, y, err
}

if cacheFont.cellOpt.Float == 0 || cacheFont.cellOpt.Float&Right == Right || cacheFont.contentType == ContentTypeText {
x += textWidthPdfUnit
x = cacheFont.x + textWidthPdfUnit
}
if cacheFont.cellOpt.Float&Bottom == Bottom {
y += textHeightPdfUnit
y = cacheFont.y + textHeightPdfUnit
}

return x, y, nil
Expand Down

0 comments on commit 58fc4ac

Please sign in to comment.