Page MenuHomePhabricator

False spaces before and behind inline-geshi-tags
Closed, ResolvedPublic

Description

Author: benni.buch

Description:
Space before geshi is not correct.

<pre>
Wikitext
text<source enclose="none" lang="cpp">geshi</source>text

HTML
<p>text <span class="cpp source-cpp">geshi</span>text</p>
</pre>


This is okay.

<pre>
Wikitext
text <source enclose="none" lang="cpp">geshi</source> text

HTML
<p>text <span class="cpp source-cpp">geshi</span> text</p>
</pre>


Spaces behind geshi get lost and the space before the span-tag is false again.

<pre>
Wikitext
text<source enclose="none" lang="cpp"> geshi </source>text

HTML
<p>text <span class="cpp source-cpp">&amp;#160; &amp;#160; &amp;#160;geshi</span>text</p>
</pre>

[http://de.wikibooks.org/w/index.php?title=Wikibooks:Spielwiese&oldid=439821 Here] you find the examples in use.


Version: unspecified
Severity: normal

Details

Reference
bz17926

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 10:35 PM
bzimport set Reference to bz17926.
bzimport added a subscriber: Unknown Object (MLST).

Hi Benjamin! Sorry that nobody has taken a look at this report yet and given feedback.

Example given in comment 0 is still valid and triggers the bug.

Krinkle claimed this task.
Krinkle subscribed.

This was resolved in the recent update.

It no longer adds an unwanted space before inline syntaxhighlight text.