"Wikitravel has a speed and convenience the books' publishers can only envy." Time Europe

Tech:Bulleted list whitespace regression

From Wikitravel Shared

Jump to: navigation, search

[edit] What happens

If there is a newline separating two entries in a list, the wiki formats the entries as if they belong to separate lists.

A long time ago, to help heal a fight between two editors over whitespace, Evan implemented the ability to have a single line between entries. This seems to have been borked.

[edit] When it happens

Given an input like:

* Foo

* Bar

Wiki is opening two HTML ul objects, one for each item.

Additionally, this bug occurs anytime a listing tag is used, even if only a single newline separates the tags. For example:

* <eat name="foo"></eat>
* <eat name="bar"></eat>

Even I can see that something is going horribly wrong with vertical spacing as a result of this bug.

Worse yet, it's been totally buggering some talk pages lately (like the VfD page on en:) since this:

* Foo

** Bar

Gets formatted like this:

  • Foo
    • Bar

[edit] What should happen

In the two above cases, a single <ul> should be opened to enclose both <li> items in the list.

[edit] How to fix it

There is no known workaround. Many of our webpages were relying on the old behavior. -- Cjensen 04:03, 17 January 2007 (EST)