[dokuwiki] Re: mono spaced text and line wrap

  • From: "Phy" <dmarc-noreply@xxxxxxxxxxxxx> (Redacted sender "i" for DMARC)
  • To: DokuWiki Mailinglist <dokuwiki@xxxxxxxxxxxxx>
  • Date: Sun, 16 Dec 2018 23:46:30 -0500

On Sun, Dec 16, 2018 at 5:42 AM Kai Peter <kp@xxxxxxxxxxxxxxxxxxx> wrote:

I recognized that mono-spaced formatted text will be line wrapped. I
think it would be nice to prevent this. One example in my case is that I
have written '-display' as an option through a paragraph. This will be
wrapped after the minus sign.


Hello Kai,

Is your issue reproduced here?
https://www.dokuwiki.org/playground:mono_spaced_text_and_line_wrap

I would say this have something to do with the browser rendering.
Specifically, this is breaking the line as a hyphen in English:
https://www.w3.org/International/articles/typography/linebreak.en#sec_hyphenation

According to https://stackoverflow.com/a/7691604/4073795 , you can use
the non-breaking hyphen to workaround this.

Regards,
Henry

Other related posts: