WeasyPrint icon indicating copy to clipboard operation
WeasyPrint copied to clipboard

Content in ::after eats succeeding white space

Open pmjdebruijn opened this issue 1 year ago • 3 comments

Content in ::after eats succeeding white space

Example: after-eats-space-bug.zip

pmjdebruijn avatar Aug 28 '23 16:08 pmjdebruijn

Result

This is a test (page 1)ranging between apples and oranges.
                       ^

Expected

This is a test (page 1) ranging between apples and oranges.
                       ^

pmjdebruijn avatar Aug 29 '23 12:08 pmjdebruijn

Wondering if this is related to issue #1889, as setting white-space: pre; makes the issue go away, it doesn't make a whole lot of sense though, given that the protected white space isn't in the <a> tag, but after it.

pmjdebruijn avatar Aug 29 '23 12:08 pmjdebruijn

I think that this bug is the same as #1889 and #1875. Let’s keep them open until we’re sure that the problem is the same.

liZe avatar Aug 31 '23 18:08 liZe