gimli icon indicating copy to clipboard operation
gimli copied to clipboard

Incorrect handling of escaping inside code blocks

Open patrickdepinguin opened this issue 7 years ago • 0 comments

Input:

```
sed 's/\(..\)/\\\x\1/g'
```

Debug output:

"/home/tdescham/.gem/ruby/2.2.0/bin/wkhtmltopdf"  -q - "/tmp/test.pdf"
<div class="CodeRay">
  <div class="code"><pre>sed 's/\(..\)/\\x/g'</pre></div>
</div>

The input code is no longer the same, the triple backslashes became 2, and the \1 backreference disappeared.

Tested with 0.5.9.

patrickdepinguin avatar Dec 17 '17 19:12 patrickdepinguin