paps icon indicating copy to clipboard operation
paps copied to clipboard

If a Pango markup `<span>` spans two lines, `paps` throws two warnings and ignore that `<span>`

Open vejkse opened this issue 2 years ago • 0 comments

With paps 0.8.0, executing paps --markup on the following text with Pango markup:

<span foreground="#006633">something
</span>
<span foreground="#aa6633">something else</span>

throws two warnings:

(paps:446639): Pango-WARNING **: 17:41:06.490: pango_layout_set_markup_with_accel: Error on line 1 char 53: Element “markup” was closed, but the currently open element is “span”

(paps:446639): Pango-WARNING **: 17:41:06.490: pango_layout_set_markup_with_accel: Error on line 1 char 15: Element “span” was closed, but the currently open element is “markup”

and the resulting PostScript file contains only the second line “something else”.

With paps 0.7.1, there is no warning and we get both lines in the PostScript file.

vejkse avatar Apr 11 '23 15:04 vejkse