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

IndexError in skip_first_whitespace #1011

Closed
izquierdo opened this issue Dec 20, 2019 · 2 comments
Closed

IndexError in skip_first_whitespace #1011

izquierdo opened this issue Dec 20, 2019 · 2 comments
Milestone

Comments

@izquierdo
Copy link

Hi, I've hit an IndexError: list index out of range crash that seems very similar to #783 and #1009. This happens in WeasyPrint 50 with the following snippet:

<html>
<head>
<style>
@page {
    margin: 1cm;
}
</style>
</head>
<body>
<div style="max-width: 45%">
<h2><wbr>トトトト          トトトト  トトトトトトトト ト <wbr></h2>
</div>
</body>
</html>

Note that the whitespace within the <h2> is made of '\u3000' characters.

@Tontyna
Copy link
Contributor

Tontyna commented Dec 20, 2019

Cannot reproduce the error -- probably due to differences in my font. But I wonder whether (hope that) it's fixed by #956.

@izquierdo, could you test your snippet with the current master branch?

@izquierdo
Copy link
Author

@Tontyna tested with the master branch and confirmed the issue does not occur. Thank you!

@liZe liZe added this to the 51 milestone Dec 23, 2019
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

3 participants