The center for all Wikitravel images!

Tech:Bulleted list whitespace regression

From Wikitravel Shared
Jump to: navigation, search

What happens[edit]

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.

When it happens[edit]

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

What should happen[edit]

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

How to fix it[edit]

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

Replaced by the listing function. Closing ticket. Riggwelter 00:14, 21 July 2012 (EDT)
This has nothing to do with the listing function, and is still present. The difference is not enormous, but for example, at the time I write this you can see different spacing between the first three lines and the third/fourth line at en:Montreal#Bike as a result of this. -- D. Guillaime 14:02, 21 July 2012 (EDT)
This just shows how important it is to be as specific as possible when you add a new bug report. A few words are not always enough, one has to be much more detailed than that. Riggwelter 12:25, 24 July 2012 (EDT)
"In the two above cases, a single <ul> should be opened to enclose both <li> items in the list." Concise, technical, specific, and easily verified in the source of any such page. How much more would you like? -- D. Guillaime 16:12, 24 July 2012 (EDT)
Calm down a bit. "There is no known workaround. Many of our webpages were relying on the old behavior". I simply confused it with the listing function, and I was wrong, which lead to you reopening the ticket. Riggwelter 16:28, 24 July 2012 (EDT)

Variants

Actions

In other languages