Eelis / cxxdraft-htmlgen

Generates https://eel.is/c++draft
Other
165 stars 12 forks source link

Entities have an invisible ­ character after an underscore #88

Closed marehr closed 2 years ago

marehr commented 3 years ago

Hi!

When copying and pasting code snippets from the standard into an editor you will get compiler errors, because it always copies a soft hyphen unicode character.

For example to_address contains that hidden character to_[hidden whitespace]address.

It would be nice, if the html wouldn't contain those hidden whitespaces in entities.

See Screenshot from 2021-09-15 12-33-03 and grafik.

Eelis commented 2 years ago

The soft hyphens are necessary to achieve good layout.

JohelEGP commented 2 years ago

When copying and pasting

The same happened to me, but it stopped somewhen along the way.

AaronBallman commented 1 year ago

I just ran into this as well: https://reviews.llvm.org/D146187#4201921

Eelis commented 1 year ago

Thanks for the reports. I realized I can use CSS to work around this problem, so I've pushed a commit to do so. Should be mostly fixed now.