Defect #37063

Code highlight adds trailing space after quotes

Added by Vitaly vit9696 about 1 month ago. Updated about 1 month ago.

Status:ConfirmedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Text formatting
Target version:-
Resolution: Affected version:5.0.0

Description

The following code:

<pre><code class="shell">
test1="123" 
test2="456" 
</code>

Generates the following HTML code:

<pre><code class="shell syntaxhl" data-language="shell"><span class="nv">test1</span><span class="o">=</span><span class="s2">"123"</span> 
<span class="nv">test2</span><span class="o">=</span><span class="s2">"456"</span> 
</code>

After both s2 spans at the end of the line an empty space character is generated, which is copyable from Safari 15.4. This bug is even reproducible here.

History

#1 Updated by Go MAEDA about 1 month ago

  • Status changed from New to Confirmed

Also available in: Atom PDF