Project

General

Profile

Actions

Defect #37063

open

Code highlight adds trailing space after quotes

Added by Vitaly vit9696 over 2 years ago. Updated over 2 years ago.

Status:
Confirmed
Priority:
Normal
Assignee:
-
Category:
Text formatting
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

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.

Actions

Also available in: Atom PDF