Last modified: 2012-12-30 21:58:37 UTC
I'm not sure whether this actually is an upstream bug in GeSHi, so I just report it here: When you highlight a line, the following linebreak is missing in the HTML source. When a user copies the code, the line break is missing in the copied text and may cause syntax errors. Example: <syntaxhighlight lang="text"> 1 2 3 </syntaxhighlight> <syntaxhighlight lang="text" highlight="2"> 1 2 3 </syntaxhighlight> Both display correctly, but while the relevant HTML for the first is <pre class="de1">1 2 3 </pre> the second has <pre class="de1">1 <span class="xtra ln-xtra">2</span>3 </pre> If you copy the result and paste it somewhere, you get 1 2 3 1 23