tats/w3m

Bug: soft hyphen handling

Closed this issue · 2 comments

Soft hyphens denoted by the ­ entity are always rendered as hyphens in w3m, even when the line isn't broken.

For example, the "Acknowledgements" heading in this page is contains a soft-hyphen (Acknowledge­ments). w3m displays this text:

Acknowledge­ments

A web browser displays the above text without a hyphen; however, pasting that text into a terminal will likely result in text that looks like this:

Acknowledge-ments

This is because terminal emulators display the soft hyphen character while web browsers only display it when wrapping text.

w3m shouldn't print the soft hyphen unconditionally: it should only print a regular when wrapping text, or should just remove it altogether.

rkta commented
tats commented

Fixed by #256