Skip to content

Commit

Permalink
Fixing spacing between different text cache box
Browse files Browse the repository at this point in the history
  • Loading branch information
nmaupu committed Sep 5, 2022
1 parent dc28503 commit e862a0b
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 e862a0b

Please sign in to comment.