Last modified: 2005-01-07 03:32:10 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T2752, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 752 - Links with escaped linefeed characters mess up indenting
Links with escaped linefeed characters mess up indenting
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 1114 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2004-10-20 18:24 UTC by Matthew Simoneau
Modified: 2005-01-07 03:32 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Matthew Simoneau 2004-10-20 18:24:11 UTC
* [http://www.example.com/list?x=%0A]
* two

Notice that the second bullet is wrongfully indented.
Comment 1 Rowan Collins [IMSoP] 2005-01-05 16:46:21 UTC
*** Bug 1114 has been marked as a duplicate of this bug. ***
Comment 2 Rowan Collins [IMSoP] 2005-01-05 16:48:33 UTC
My comments from dupe bug 1114:

http://en.wikipedia.org/wiki/Talk:Mozilla_Firefox#Firefox_more_multilingual_than_IE.3F__Opera.3F.3F
As you should be able to see, everything below the section of discussion
referenced, including other headers, is indented as though it were prefixed with
"::". It turns out that there is a URL referenced there which ends in "%0a"
(i.e. an escaped linefeed), and this is somehow breaking the parser;
specifically, the indentation of that particular line is never closed, so
everything below it is indented to the same degree.

I've constructed a simplified test-case at http://test.wikipedia.org/wiki/LFURL,
and it seems that what's happening is that the "%0a" is being unescaped in the
'title' attribute, and then the closing "</dd></dl>" added *to that attribute*.
Presumably, the parser is spotting what is now a plain newline and taking it to
be the end of the indentation.

I'm guessing there's code somewhere that unescapes such escape sequences to make
URL title attributes more readable [the href attribute works fine]; perhaps this
needs to be confined to only unescape printable characters?
Comment 3 Brion Vibber 2005-01-07 03:32:10 UTC
0x00-0x1f are now converted to spaces.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links