Last modified: 2006-02-03 06:36:16 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 3347 - Error in indented multine math yields incorrectly nested tags
Error in indented multine math yields incorrectly nested tags
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.6.x
All All
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
http://en.wikipedia.org/wiki/User:Jit...
: patch, patch-need-review
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-09-03 20:32 UTC by Jitse Niesen
Modified: 2006-02-03 06:36 UTC (History)
0 users

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


Attachments
Patch to fix bug (1.06 KB, patch)
2005-09-03 20:35 UTC, Jitse Niesen
Details

Description Jitse Niesen 2005-09-03 20:32:06 UTC
This wiki code

:<math>\foo
x</math>

produces the following HTML output:

<dl><dd><strong class='error'>Failed to parse (unknown function\foo): \foo
</dd></dl>
<p>x</strong>

The tags are incorrectly nested. The cause of this is that the faulty TeX inside
the math tags is replaced with an error message containing the contents of the
tags, which span multiple lines:

:<strong class='error'>Failed to parse (unknown function\foo): \foo
x</strong>

This confuses the code for indenting the paragraph.
Comment 1 Jitse Niesen 2005-09-03 20:35:44 UTC
Created attachment 851 [details]
Patch to fix bug

The fix is to replace all newlines in the contents of the math tags with
spaces. This is achieved with the attached patch.
Comment 2 Brion Vibber 2006-02-03 06:36:16 UTC
Applied to CVS HEAD for 1.6.

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


Navigation
Links