https://bugzilla.wikimedia.org/show_bug.cgi?id=11274


Splarka <[EMAIL PROTECTED]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[EMAIL PROTECTED]
            Summary|The <pre> tag around GeSHi- |The <pre>/<div> tag around
                   |highlighted code does not   |GeSHi-highlighted code does
                   |have a class "source"       |not have a class "source"




--- Comment #4 from Splarka <[EMAIL PROTECTED]>  2008-11-28 19:31:48 UTC ---
Oddly, there aren't always <pre> in the output of GeSHi anymore.

On Wikimedia: <source lang="css">.foo {}</source> currently produces: 
 <div dir="ltr" style="text-align: left;"><pre class="source-css"><span
class="re1">.foo</span> <span class="br0">{</span><span
class="br0">}</span></pre></div>

While <source lang="css" line>.foo {}</source> produces: 
 <div dir="ltr" style="text-align: left;"><div class="source-css"
style="font-family: monospace;"><ol><li class="li1"><div class="de1"><span
class="re1">.foo</span> <span class="br0">{</span><span
class="br0">}</span></div></li></ol></div></div>

Meanwhile, all lang stylesheets remove the borders from <pre> that are
descendants of the .source-lang, which applies to neither of these cases, but
does for output like like:
 <div dir="ltr" style="text-align: left;"><div class="html4strict
source-html4strict" style="font-family:monospace;"><ol><li class="li1"><pre
class="de1"><span class="sc2">&lt;<span class="kw2">table</span> <span
class="kw3">border</span><span class="sy0">=</span><span
class="st0">&quot;1&quot;</span>&gt;</span></pre></li></pre></li></ol></div></div>

And the borders for that <pre> get removed in the inline style:
 .source-html4strict li, .source-html4strict pre {
        line-height: normal; border: 0px none white;
 }

So simply classing all <pre> won't work. You'll probably need to class the
outer object, the div setting dir="". And then probably remove the border from
all descendant pre from that. Ugh.


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are watching all bug changes.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to