You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: