4 ms·
> I must say that it really is totally unintuitive to have put 2 spaces at the end of a line to get a linebreak Agreed! One way I get round that is to run tex
by ErrantX 17y ago
> I must say that it really is totally unintuitive to have put 2 spaces at the end of a line to get a linebreak
Agreed!
One way I get round that is to run text through a Markdown parser first then do a regex to replace \n with <br />
That seems to work fairly will ~99% of the time.
(I do like Markdown though - compared to, for example, BBCode. It degrades fairly gracefully, ignoring the line break issue, so you can just write a chunk of text and it looks good but formatting is fairly easy to pick up and eventually intuitive for more advanced users)
- monos 17y agothe problem with replacing backslash with <br/> is that there are also the kind of users that make to much carriage returns whenever they feel a sentence is finished. this turns out to be just as ugly. how do you get to the 99%?? i would say there are more people pressing ENTER when they really want a line-wrap then people writing textwalls.
- ErrantX 17y agoUmm well I was respondign to the guy above me with references to the 2 spaces to get a line break problem. Markdown does not parse \n (at least not so I have seen) at all. The textwalls problem I don't have a solution too :)