space fix for paragraph
This commit is contained in:
parent
c166183f35
commit
410057806e
|
@ -137,7 +137,8 @@ proc typeset*(
|
||||||
prevCanWrap = i
|
prevCanWrap = i
|
||||||
|
|
||||||
let advance = glyphAdvance(result.runes, font, i)
|
let advance = glyphAdvance(result.runes, font, i)
|
||||||
if bounds.x > 0 and at.x + advance > bounds.x: # Wrap to new line
|
if rune != Rune(32) and bounds.x > 0 and at.x + advance > bounds.x:
|
||||||
|
# Wrap to new line
|
||||||
at.x = 0
|
at.x = 0
|
||||||
at.y += lineHeight
|
at.y += lineHeight
|
||||||
|
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 81 KiB After Width: | Height: | Size: 80 KiB |
Binary file not shown.
Before Width: | Height: | Size: 76 KiB After Width: | Height: | Size: 76 KiB |
Loading…
Reference in a new issue