Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vejkse opened this issue Apr 11, 2023 · 0 comments

Comments

@vejkse
Copy link

vejkse commented Apr 11, 2023

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 vejkse changed the title If a Pango markup <span> spans two lines, paps throws two warnings and ignore that span If a Pango markup <span> spans two lines, paps throws two warnings and ignore that <span> Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant