Description

When using the gui editor to create a formatted area preview/save/text mode removes empty lines

Steps to reproduce

  1. Create a page
  2. Press Format/Formatted
  3. Write a 2 lines with an empty in between (1 <enter> <enter> 2)

  4. Press Preview

Example

Edit this page in gui mode, press "Preview" and see the empty line disapear

1

2

Component selection

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


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/GuiEditFormattedCollapseEmptyLines (last edited 2007-11-20 06:44:25 by 203-173-139-79)