News:

Use the "Forum Search"
It may help you to find anything in the forum ;).

Carriage return issues

Started by jamespetts, April 14, 2019, 05:44:48 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jamespetts

I notice that, when using the standard editor (i.e., when "Toggle view" has not been selected), it often happens that double carriage returns are not respected as such, with the result that breaks between paragraphs inserted for formatting purposes disappear and the text is harder to read. I have noticed this for some time, but have not got around to reporting this until now.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Isaac Eiland-Hall

I'll see if I can poke at this, but delving into SMF's code doesn't give me hope for a solution. :(

An_dz

By standard do you mean the WYSIWYG editor or the plain text one?

jamespetts

Quote from: An_dz on April 29, 2019, 12:04:46 AM
By standard do you mean the WYSIWYG editor or the plain text one?

I mean the one that is selected by default when clicking "reply", i.e., the WYSIWYG editor.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Leartin

For completions sake: Whether it's WYSIWYG or not by default is a setting in the users profile, so "the default" is not quite a helpful description :)

An_dz

#5
Exactly what Leartin said, I was not clear enough. I wanted to know if the bug happens when going plain -> WYSIWYG or WYSIWYG -> plain.

But now I see that it's WYSIWYG -> plain.




Fixed. It uses an HTML5 feature called contenteditable and it has no standard on its output. SMF was outputting Firefox-like html on WebKit/Blink and also got it wrong on how to transform it back to plain text on WebKit/Blink.

Carl

Just came to this forum to post a similar bug. The following post appears to have paragraph breaks in the WYSIWYG editor but these don't appear in the post:
https://forum.simutrans.com/index.php/topic,7367.msg181291.html#msg181291


I also had terrible trouble formatting this post the other day - after having done it in WYSIWYG I first ended up with no line breaks at all - and it didn't match the preview.
https://forum.simutrans.com/index.php/topic,7367.msg181252.html#msg181252

Is the solution just not to use the WYSIWYG editor?

An_dz

Yes, not using the WYSIWYG editor will yield no problems, I never used it.