Last modified: 2006-02-03 06:36:16 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 T5347, the corresponding Phabricator task for complete and up-to-date bug report information.
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