Trailing space causes pango to wrap a line differently
Submitted by Gene Hightower
Link to original bug (#751187)
Description
Wrapping can be seen using pango-view.
The font I use in the examples is common on Linux, use "Courier New" on Windows or "Courier" on Mac I would guess.
This looks good: ten Xs are a line:
pango-view --markup --width=75 --text='<span font_family="Courier 10 Pitch" size="12288">
xxxxxxxxxx</span>
'
Ten Xs with a trailing space are /two/ lines:
pango-view --markup --width=75 --text='<span font_family="Courier 10 Pitch" size="12288">
xxxxxxxxxx </span>
'
With the first line having 9 Xs and the second line having one. I had hoped that any number of trailing spaces at the end should make no difference: we should still have a line of 10 Xs. Am I mistaken about this?
With two full lines (or three or more full lines) everything works fine again:
Two lines, all good:
pango-view --markup --width=75 --text='<span font_family="Courier 10 Pitch" size="12288">
xxxxxxxxxx xxxxxxxxxx</span>
'
Three lines:
pango-view --markup --width=75 --text='<span font_family="Courier 10 Pitch" size="12288">
xxxxxxxxxx xxxxxxxxxx xxxxxxxxxx</span>
'
Version: 1.36.x