archivist icon indicating copy to clipboard operation
archivist copied to clipboard

HTMLeditor treat new lines as whitespace

Open Integral opened this issue 10 years ago • 8 comments
trafficstars

Just append new line (shift+enter) to some string and save it - you will see whitespace instead of newline.

Integral avatar Jul 23 '15 20:07 Integral

@oliver---- do you have any time today for that? It's most critical now, I think after this we could deploy.

Integral avatar Jul 23 '15 20:07 Integral

you think that is critical? most people will just press enter anyway to create a new paragraph?

michael avatar Jul 23 '15 20:07 michael

no, the problem that i already create a lot of comments during import and it has a lot of new lines

Integral avatar Jul 23 '15 20:07 Integral

can you convert them to paragraphs somehow?

michael avatar Jul 23 '15 20:07 michael

like instead of:

<p>abc<br>efg</p>

to have

<p>abc</p><p>efg</p>

michael avatar Jul 23 '15 20:07 michael

it would be replacing <br> with </p><p>.

michael avatar Jul 23 '15 20:07 michael

I suppose HTMLImporter and Exporter should turn \n into <br> and vice versa, in general.

obuchtala avatar Jul 24 '15 04:07 obuchtala

definitely!

michael avatar Jul 24 '15 05:07 michael