Last modified: 2011-04-12 15:56:29 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 T5230, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 3230 - Leading spaces in <pre> block render incorrectly when block preceded by another <pre>
Leading spaces in <pre> block render incorrectly when block preceded by anoth...
Status: NEW
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
http://en.wikipedia.org/wiki/User:Sim...
: newparser
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-08-22 22:19 UTC by Michael Bushey
Modified: 2011-04-12 15:56 UTC (History)
3 users (show)

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


Attachments
Sample input that produces the problem (134 bytes, text/plain)
2006-12-22 04:40 UTC, Rob Church
Details
Screenshot of the broken rendering (33.72 KB, image/png)
2006-12-22 04:45 UTC, Rob Church
Details
HTML output of sample (from Wikipedia) (158 bytes, text/html)
2006-12-22 05:14 UTC, Aryeh Gregor (not reading bugmail, please e-mail directly)
Details

Description Michael Bushey 2005-08-22 22:19:27 UTC
<pre></pre><pre>
                     Already in a pre block
                     ----------------------
Fully aligned to the left w/o any spaces
 Indented by a space
 Another indented line
</pre>


The text above makes blocks inside of a block. If the first set of pre's are
removed then the 2nd set of pre's work correctly.
Comment 1 Michael Bushey 2005-08-22 22:23:18 UTC
To see the above example you have to indent some of the lines
Comment 2 lɛʁi לערי ריינהארט 2006-02-08 02:39:34 UTC
Hallo!

Is this the same bug as at
http://yi.wikipedia.org/w/index.php?title=MediaWiki:Monobook.css&oldid=12697 ?

Please take a look at the workaround at
http://yi.wikipedia.org/w/index.php?title=MediaWiki:Monobook.css&diff=12698&oldid=12697

Until now I used both <pre> and </pre> only at the beginning of lines. In the
example from comment 0 and at the new example this is not the case. It seams
that the second ocurence fails.

best regards reinhardt [[user:gangleri]]
Comment 3 Rob Church 2006-12-22 04:40:24 UTC
Created attachment 2920 [details]
Sample input that produces the problem

Some sample markup that will produce the problem.
Comment 4 Rob Church 2006-12-22 04:45:28 UTC
Created attachment 2921 [details]
Screenshot of the broken rendering

Screenshot of the broken rendering that attachment 2920 [details] is parsed to.
Comment 5 Aryeh Gregor (not reading bugmail, please e-mail directly) 2006-12-22 05:14:47 UTC
Created attachment 2922 [details]
HTML output of sample (from Wikipedia)

That's not the output I see.  See URL.	Attachment shows the HTML output I get:
the <pre>s aren't nested, the first one terminates when the second one starts. 
Is this because of Tidy, maybe?  Where did you get your test sample from?  It's
buggy either way, at any rate.

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


Navigation
Links