Project

General

Profile

Actions

Defect #37063

open

Code highlight adds trailing space after quotes

Defect #37063: Code highlight adds trailing space after quotes

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

Status:
Confirmed
Priority:
Normal
Assignee:
-
Category:
Text formatting
Target version:
-
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.

Updated by Go MAEDA over 4 years ago Actions #1

  • Status changed from New to Confirmed
Actions

Also available in: PDF Atom