[dokuwiki] Re: mono spaced text and line wrap

  • From: Kai Peter <kp@xxxxxxxxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Tue, 18 Dec 2018 09:22:49 +0100

On 2018-12-17 05:46, Phy wrote:

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

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
wrapped after the minus sign.

Hello Kai,

Hello Henry,

Is your issue reproduced here?

It is similar to the first example 'break hyphen'. But it is not a 'veryverylongcommand', it's simply at the and of a line.

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

I played a bit around with this and ended up to add an entry to entities:

[-]         &#8722;

This works fine for me at least in the 2 cases I have had. In the editor one have to replace '-' with '[-]'. May be I will add more lines, e.g. for non-breaking spaces, if I see such an issue.

Anyway, do you think this is a good solution? Or is there a better way like with css?

Many thanks for your help.


Sent with eQmail-1.11 beta - a fork of djb's famous qmail
DokuWiki mailing list - more info at

Other related posts: