Last modified: 2010-05-15 15:37:33 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 3935 - <pre> inline style redefinitions no longer work in 1.5.2
<pre> inline style redefinitions no longer work in 1.5.2
Status: RESOLVED DUPLICATE of bug 3202
Product: MediaWiki
Classification: Unclassified
Templates (Other open bugs)
1.5.x
PC Linux
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
http://voynich.mine.nu/wiki/index.php...
:
: 4264 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-11-12 07:47 UTC by Andrew Meldrum
Modified: 2010-05-15 15:37 UTC (History)
1 user (show)

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


Attachments

Description Andrew Meldrum 2005-11-12 07:47:53 UTC
I have just upgraded to MediaWiki v1.5.2 (Gentoo) and a template I had working
in 1.4.12 no longer seems to work, in particular the inline styles for the <PRE>
tag are now being stripped.

The inline styling of the pre tag is needed as I have to display a block of
formatted text (including multiple whitespace and line breaks) in a radically
different language (Voynich). While one solution could be to redefine the CSS
style sheet to use my font changes I don't believe I can do this, because, for
this project, I have four <PRE> style templates each using a different character
set (Voynich EVA Hand 1, EVA Hand 2, Currier, Frogguy) which all need to use a
different face.

v1.4.12 Template:EVA1 (WORKING)
[code]<table width="75%" cellpadding="0" cellspacing="0"
style="background-color: #FFFF99; 
      border: solid 1px blue;">
      <tr><td style="Color: white; background-color: Blue; border: solid 1px
#a0ffa0;
      border-bottom: 1px solid #888;">
      <font size="-1">EVA 1: <b>{{{1}}}</b></font></td></tr>
      <tr style="background-color: #FFFF99;><td>
      <pre style="font-family: 'EVA Hand 1'; line-height: 150%; 
                  font-size: 16pt; color: black; background-color: #FFFF99;
border-style: none">
      {{{2}}}</pre>
      </td></tr></table>
[/code]

This worked perfectly in 1.4.12, but when I plug this template into 1.5.2 I get
the result:

v1.5.2 Template:EVA1 (NOT WORKING)
[code]<table width="75%" cellpadding="0" cellspacing="0"
style="background-color: #FFFF99; 
      border: solid 1px blue;">
      <tr><td style="Color: white; background-color: Blue; border: solid 1px
#a0ffa0;
      border-bottom: 1px solid #888;">
      <font size="-1">EVA 1: <b>{{{1}}}</b></font></td></tr>
      <tr style="background-color: #FFFF99;><td>
      <pre>
      {{{2}}}</pre>
      </td></tr></table>
[/code]

As you can see the inline style for PRE has been totally stripped.

**To reproduce this problem: copy the first code block into a MediaWiki
template:, save then edit again. The pre style will be stripped and it will look
like the second code block.**

My MediaWiki server is on Gentoo Linux. I have tried to enter the template using
Firefox on XP, Firefox on OSX and Firefox on Gentoo.
Comment 1 Brion Vibber 2005-12-15 19:34:38 UTC
*** Bug 4264 has been marked as a duplicate of this bug. ***
Comment 2 Brion Vibber 2006-06-04 00:41:05 UTC

*** This bug has been marked as a duplicate of 3202 ***

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


Navigation
Links