Merge pull request #229 from adrg/master

Fix styled paragraph newline text wrapping
This commit is contained in:
Gunnsteinn Hall 2018-10-05 12:44:43 +00:00 committed by GitHub
commit 731a0dd9af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -281,7 +281,7 @@ func (p *StyledParagraph) wrapText() error {
}
// newline wrapping.
if glyph == "controllf" {
if glyph == "controlLF" {
// moves to next line.
line = append(line, TextChunk{
Text: strings.TrimRightFunc(string(part), unicode.IsSpace),