PDA

View Full Version : [fixed] Display of fonts. An HTML issue in functions.php


Streicher
Sat 8th Dec '01, 11:20am
Look at the example below:

---------------------

This is a test

test

This is a test

test

This is a test
-----------------------

The font is changing because the tags in the functions.php are missordered.

To fix:

change line ~694 from

</normalfont><blockquote><pre><smallfont>code:</smallfont><hr>\\5<hr></pre><normalfont></blockquote>

to

</normalfont><blockquote><pre><smallfont>code:</smallfont><hr>\\5<hr></pre></blockquote><normalfont>



change line ~695 from

</normalfont><blockquote><pre><smallfont>code:</smallfont><hr>\\5<hr></pre><normalfont></blockquote>

to

</normalfont><blockquote><pre><smallfont>code:</smallfont><hr>\\5<hr></pre></blockquote><normalfont>

Hmm the lines 694 and 695 are the same :confused:


and finally change line ~819 from

return "</normalfont><blockquote><pre><smallfont>code:</smallfont><hr>" . str_replace("<br>", "", str_replace("<br />", "", $foundcode) ) . "<hr></pre><normalfont></blockquote>";

to

return "</normalfont><blockquote><pre><smallfont>code:</smallfont><hr>" . str_replace("<br>", "", str_replace("<br />", "", $foundcode) ) . "<hr></pre></blockquote><normalfont>";

TommyBALL
Sat 8th Dec '01, 12:24pm
Originally posted by Streicher
Hmm the lines 694 and 695 are the same :confused: :) If you look closer, you see that this is the replacearray. And if you compare it to the searcharray a above, you will see that one is for the [ php ] tag, while the other is for the [ code ] tag.

Anyway. Thanks for the fix! This bug has irritated me since 2.0 beta-something :o

:)
- Tommy

John
Sat 8th Dec '01, 2:33pm
I don't see any problem with the fonts :confused: what should I be looking for?

John

Streicher
Sat 8th Dec '01, 3:28pm
@TommyBALL: Thanks for the hint.

@John: You can only see the font changing in Opera 6. The Internet Explorer 6 and Netscape 6.2 shows the correct font. Please look at my screenshot.

Joshua Clinard
Mon 10th Dec '01, 2:24pm
To be more specific, the nested tags are in the wrong order.