Description
When using the gui editor to create a formatted area preview/save/text mode removes empty lines
Steps to reproduce
- Create a page
- Press Format/Formatted
Write a 2 lines with an empty in between (1 <enter> <enter> 2)
- Press Preview
Example
Edit this page in gui mode, press "Preview" and see the empty line disapear
1 2
Component selection
- general
Details
MoinMoin Version |
1.5.6 |
OS and Version |
Gentoo/amd64 |
Python Version |
2.4.3 |
Server Setup |
Apache/2.0.58 |
Server Details |
|
Language you are using the wiki in (set in the browser/UserPreferences) |
En |
Workaround
The only workaround is to not make formatted with empty lines in gui.
Discussion
Likely caused by the check_whitespace code in the gui converter. Then intent of this function is to remove superfluous whitespace - maybe we should just try without it.
This can also affect the correctness of the layout. Try creating two tables in Text Mode, for example
||text|| ||text||
Press Preview. Then switch to GUI Editor and press Preview again. The tables are merged together.
Please test yourself at test.wikiwikiweb.de. I do believe it is fixed for 1.6dev. If not we do reopen this Bugreport again. -- ReimarBauer 2007-01-25 16:06:50
Tested at WikiSandBox and this seems to be fixed like you stated. Thanks. -- HenriOssi 2007-01-26 06:57:15
Is there any workaround/fix for the 1.5.x version?? This is a very annoying behavior when documenting scripts etc -- JoacimJ 2007-10-16 06:57:15
Plan
- Priority:
- Assigned to:
- Status: fixed in 1.6