scragg0x / realms-wiki

Git based wiki inspired by Gollum
http://realms.io
GNU General Public License v2.0
833 stars 90 forks source link

Stripping space / newlines #104

Open ShonM opened 8 years ago

ShonM commented 8 years ago

http://cl.ly/0c1Y1b342S2a

Placing a newline with or without spaces in between the elements will strip on next editor load, every time, regardless of the elements used. Any amount of space and any amount of newlines, they are all stripped between elements and replaced by a single newline (breaking the spacing and consequent rendering).

I feel like this is an encoding issue (telling the editor what content to use), or an editor configuration issue, but I haven't looked further. Learning a bit more about how the project is set up, then I will dig in, and possibly offer a fix. In the mean time, if this is easy to solve for someone, I hope they will submit code or even just point me to what this could be.

Happy to provide a small video of this happening if that helps!

ShonM commented 8 years ago

Thought about it a bit harder and the newlines do show after edit, but do not show in the editor. It's definitely related to either how the content is given to the editor or how the editor interprets the content.