Skip to content

Commit

Permalink
dont encode glyphs when you only wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsinham committed Sep 22, 2017
1 parent 207d0ef commit 4f438e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdf/creator/paragraph.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ func (p *Paragraph) getTextWidth() float64 {
// XXX/TODO: Consider the Knuth/Plass algorithm or an alternative.
func (p *Paragraph) wrapText() error {
if !p.enableWrap {
p.textLines = []string{p.encoder.Encode(p.text)}
p.textLines = []string{p.text}
return nil
}

Expand Down

0 comments on commit 4f438e3

Please sign in to comment.