Last modified: 2012-01-13 13:53:14 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 T18333, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 16333 - pre formatted text is mal-aligned
pre formatted text is mal-aligned
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
http://de.wikipedia.org/w/index.php?t...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-11-13 17:25 UTC by traut
Modified: 2012-01-13 13:53 UTC (History)
2 users (show)

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


Attachments
Screen shot of page in Firefox 3/Mac (92.04 KB, image/png)
2008-11-13 17:35 UTC, Brion Vibber
Details

Description traut 2008-11-13 17:25:57 UTC
pre-formatted text shows incorrect spacing.

The wiki code is entered as

   1  -----------. ,----------- 1   Audio Out r
                  X
   2  -----------´ `----------- 2   Audio In r

(ASCII art)

The preview does html format it as
<pre>
  1  -----------. ,----------- 1   Audio Out r
                 X
  2  -----------´ `----------- 2   Audio In r
</pre>
... which is ok.

The final result is shown as
<pre>
  1 -----------. ,----------- 1   Audio Out r
                 X
  2 -----------´ `----------- 2   Audio In r
</pre>

... which is mal aligned.

Even worse is code some lines below in the article:

 17  -+---------. ,------+---- 17  FBAS Masse
      |          X       |
 18  -)-+-------´ `------)-+-- 18  FBAS Masse
 19  -O-)-------. ,------O-)-- 19  FBAS Video Out
        |        X         |
 20  ---O-------´ `--------O-- 20  FBAS Video In

becomes total garbage:
 17 -+---------. ,------+---- 17 FBAS Masse
      | X       |
 18 -)-+-------´ `------)-+-- 18 FBAS Masse
 19 -O-)-------. ,------O-)-- 19 FBAS Video Out
        | X         |
 20 ---O-------´ `--------O-- 20 FBAS Video In


The problem could be fixed by adding <pre> </pre> manually, while this had not been necessary before
Comment 1 Brion Vibber 2008-11-13 17:35:09 UTC
Created attachment 5525 [details]
Screen shot of page in Firefox 3/Mac

Looks ok to me. Is this what you see or is it different? Can you point out the incorrect parts? Can you detail what browser and OS you're using?
Comment 2 traut 2008-11-13 17:51:36 UTC
> Looks ok to me. Is this what you see or is it different? Can you point out
> the
> incorrect parts? Can you detail what browser and OS you're using?

It looks ok NOW...

It looked ok, since I added <pre> to it...

I checked the previous version, which was incorrect - and shows ok now again...

I reverted to the non-pre-version... and it shows ok, too :-o

I do not have any clue what was wrong in between...

I can detail the browser: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.9) Gecko/2007102514 Firefox/2.0.0.9
... but the bug was not from the browser, but was visible within the html source code...

People "fixed" the code several times since it did not show up properly - but now the display is ok. A random effect? Or have there been temporary problems?

http://de.wikipedia.org/w/index.php?title=SCART&diff=52954813&oldid=52630155
Comment 3 Brion Vibber 2008-11-13 18:03:17 UTC
The "wrong" version there seems to be simply... well... wrong. It's got the wrong spacing in the page source, which is faithfully duplicated in the rendering.

It was changed from right to wrong in this edit:
http://de.wikipedia.org/w/index.php?title=SCART&diff=prev&oldid=50826870
by Andim at 21:40, 16. Sep. 2008, labeled as "Kat".

This edit appears to have altered whitespace in several places in the article, then finally changed the category links at the end. I'd recommend checking with Andim as to whether such edits have been made by hand or through some sort of bot tool, and if so check if the bot might be causing whitespace changes by mistake.

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


Navigation
Links