• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item5215: Add unit test for deprecated definition list syntax.

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine Text Formatting Rules Low New   minor 4.2.0

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

When using a colon in a list item that spans multiple-lines, the colon will incorrectly force a line-break.

This code:

   * This is a list that will break%BR%
   Dates: 01/01/08 - 02/02/08

   * This is a list that will render correctly, as it doesn't have a colon.%BR%
   Dates 01/01/08 - 02/02/08

Creates:

  • This is a list that will break
Dates
1/01/08 - 2/02/08

  • This is a list that will render correctly, as it doesn't have a colon.
    Date 1/01/08 - 2/02/08

This behaviour isn't mentioned in TWiki:TWiki/TextFormattingRules, so I can only assume it's a bug.

-- TWiki:Main/ChrisFLewis - 06 Jan 2008

This is actually an undocumented legacy feature. TWiki used to have this definition for definition lists: Three spaces, term, colon, space, defintion. Your example with "Date" matches that pattern.

See old syntax defined at http://twiki.org/cgi-bin/view/TWiki/TextFormattingRules?rev=51

We need to support legacy content (there are tens of millions of pages out there.)

Workaround: Add one or two more spaces before "date".

-- TWiki:Main.PeterThoeny - 06 Jan 2008

re-opening, as there are 3 spaces before the "date".

-- SvenDowideit - 07 Jan 2008

even presuming that we should continue to support this format, it would then need to be documented, and a unit test added.

So either way, it needs actioning.

-- TWiki:Main.SvenDowideit - 07 Jan 2008

  • This is a list that will not break
    Dates: 01/01/08 - 02/02/08

This bug is about one space more or less, right? We have more than one problem with spaces in TWiki. frown IMHO this one doesn't classify as release blocker.

-- TWiki:Main.FranzJosefGigler - 07 Jan 2008

It is documented also in the current TextFormattingRules and clearly marked as deprecated syntax.

Adding a unit test. Noone will argue against that. Maybe it is already there? Like the doc. But it is for sure not a release blocker now we know that it is properly documented.

Changed the headline to the current nature of the bug.

-- TWiki:Main.KennethLavrsen - 07 Jan 2008

ItemTemplate
Summary Add unit test for deprecated definition list syntax.
ReportedBy TWiki:Main.ChrisFLewis
Codebase 4.2.0
SVN Range

AppliesTo Engine
Component Text Formatting Rules
Priority Low
CurrentState New
WaitingFor

Checkins

TargetRelease minor
ReleasedIn 4.2.0
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2008-01-07 - KennethLavrsen
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback