pango_default_break misbehaves when space after newline
Submitted by Peter Moulder
Link to original bug (#683602)
Description
Created attachment 223796 patch against pango-1.31.1
Calling pango_break on the string "X\n Y" correctly marks a mandatory line break immediately after the newline, but incorrectly also marks a mandatory break immediately before the second space character, i.e. immediately after the first space of the second line.
The attached simple patch is enough to fix this, but doesn't include expanding the test coverage to catching the bug and its purported fix.
I haven't tried looking for other divergences from TR14, nor have I checked whether it already conformed to TR14 to begin with (i.e. whether there's a bug in TR14, or a bug in my understanding of is_mandatory_break).
Patch 223796, "patch against pango-1.31.1":
break-1.31.1.diffs
Version: 1.31.x