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

bookmark may contain extraneous characters #1468

Closed
interlocuteur opened this issue Oct 8, 2021 · 1 comment
Closed

bookmark may contain extraneous characters #1468

interlocuteur opened this issue Oct 8, 2021 · 1 comment
Labels
bug Existing features not working as expected

Comments

@interlocuteur
Copy link

Bookmarks displayed in the bookmarks panel may contain extraneous spaces or \n.
Problem is easy to demonstrate if you convert the following snippet of HTML:

<h2><a href="example.org/index.html">This is -
- a problematic example.</a></h2>"

Replace the 2 dashes with spaces (this editor delete extra spaces)
Convert this HTML file to PDF with weasyprint.
Display the bookmark list in your PDF viewer.

The bookmark contains extraneous spaces. It also contain an extraneous \n but your PDF viewer do not show it explicitely. However, you can see the \n using the API.
The problem happen when the anchor text is split on two lines in the HTML file.

@liZe liZe added the bug Existing features not working as expected label Oct 12, 2021
@liZe
Copy link
Member

liZe commented Oct 12, 2021

Hello!

Thanks for the bug report. That’s actually a duplicate of #607, and we can now probably fix it. Good news should come soon!

@liZe liZe closed this as completed Oct 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Existing features not working as expected
Projects
None yet
Development

No branches or pull requests

2 participants