Last modified: 2010-05-15 15:37:33 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.
*** Bug 4264 has been marked as a duplicate of this bug. ***
*** This bug has been marked as a duplicate of 3202 ***