Skip to content

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

@vejkse

Description

@vejkse

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions