Last modified: 2011-04-14 15:12:02 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T17333, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 15333 - <source> tag cannot be rendered correctly when more than one tags are in the same line
<source> tag cannot be rendered correctly when more than one tags are in the ...
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
SyntaxHighlight (GeSHi) (Other open bugs)
unspecified
All All
: Low normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
http://zh.wikipedia.org/w/index.php?t...
: parser
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-08-27 03:45 UTC by Liangent
Modified: 2011-04-14 15:12 UTC (History)
2 users (show)

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


Attachments

Description Liangent 2008-08-27 03:45:56 UTC
my code, cannot be rendered correctly:

<source lang="cpp">
#include <iostream>
using namespace std;
int main() {
  cout << 'x' << endl;
}
</source><source lang="cpp">
#include <iostream>
using namespace std;
int main() {
  cout << 'x' << endl;
}
</source>
Comment 1 Niklas Laxström 2008-09-28 09:09:32 UTC
Works for me. Please provide more details.
Comment 2 Brion Vibber 2008-10-06 21:05:35 UTC
The <pre>s get divided up funny:

<div dir="ltr" style="text-align: left;">

<pre class="source-cpp">
<span class="co2">#include &lt;iostream&gt;</span>
<span class="kw2">using</span> <span class="kw2">namespace</span> std;
<span class="kw4">int</span> main<span class="br0">(</span><span class="br0">)</span> <span class="br0">{</span>

  <span class="kw3">cout</span> <span class="sy1">&lt;&lt;</span> <span class="st0">'x'</span> <span class="sy1">&lt;&lt;</span> endl;
<span class="br0">}</span>
</pre></div>
<div dir="ltr" style="text-align: left;">
<pre class="source-cpp">
<span class="co2">#include &lt;iostream&gt;</span>
<br /><span class="kw2">using</span> <span class="kw2">namespace</span> std;

<span class="kw4">int</span> main<span class="br0">(</span><span class="br0">)</span> <span class="br0">{</span>

</pre>
<pre>
 <span class="kw3">cout</span> <span class="sy1">&lt;&lt;</span> <span class="st0">'x'</span> <span class="sy1">&lt;&lt;</span> endl;

</pre>
<pre>

<span class="br0">}</span>
</pre></div>

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


Navigation
Links