Skip to content

Commit

Permalink
Fix linebreak when textbox starts with spaces, fixes #234
Browse files Browse the repository at this point in the history
  • Loading branch information
tdewolff committed Jul 25, 2023
1 parent 4553f76 commit 641901f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions text/linebreak.go
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,7 @@ func GlyphsToItems(glyphs []Glyph, indent float64, align Align) []Item {
if padStart.Size != 0 {
items[0].Width += padStart.Width
items[0].Size += padStart.Size
items = append(items, Penalty(0, 0, false))
}
if align == Centered {
items = append(items, Glue(0.0, stretchWidth, 0.0))
Expand Down

0 comments on commit 641901f

Please sign in to comment.