Skip to content
This repository
Browse code

Fix issue with inspection tooltip by showing the character with gener…

…ated content instead of the escaped character.
  • Loading branch information...
commit 912139a86a458576dbd988f1233806252aff3141 1 parent 8a3fa7e
David Håsäther hzr authored

Showing 1 changed file with 29 additions and 29 deletions. Show diff stats Hide diff stats

  1. +29 29 src/syntaxhighlight/js/tokenizer.js
58 src/syntaxhighlight/js/tokenizer.js
@@ -359,35 +359,35 @@ cls.SimpleJSParser.prototype = new function()
359 359 '&': '&',
360 360 // The following control characters need to be escaped in XML.
361 361 // U+0000-U+001F excluding U+0009, U+000A and U+000D.
362   - '\u0000': '\\u0000',
363   - '\u0001': '\\u0001',
364   - '\u0002': '\\u0002',
365   - '\u0003': '\\u0003',
366   - '\u0004': '\\u0004',
367   - '\u0005': '\\u0005',
368   - '\u0006': '\\u0006',
369   - '\u0007': '\\u0007',
370   - '\u0008': '\\u0008',
371   - '\u000b': '\\u000b',
372   - '\u000c': '\\u000c',
373   - '\u000e': '\\u000e',
374   - '\u000f': '\\u000f',
375   - '\u0010': '\\u0010',
376   - '\u0011': '\\u0011',
377   - '\u0012': '\\u0012',
378   - '\u0013': '\\u0013',
379   - '\u0014': '\\u0014',
380   - '\u0015': '\\u0015',
381   - '\u0016': '\\u0016',
382   - '\u0017': '\\u0017',
383   - '\u0018': '\\u0018',
384   - '\u0019': '\\u0019',
385   - '\u001a': '\\u001a',
386   - '\u001b': '\\u001b',
387   - '\u001c': '\\u001c',
388   - '\u001d': '\\u001d',
389   - '\u001e': '\\u001e',
390   - '\u001f': '\\u001f'
  362 + '\u0000': '<span style="content: \'\\0000\'">␀</span>',
  363 + '\u0001': '<span style="content: \'\\0001\'">␁</span>',
  364 + '\u0002': '<span style="content: \'\\0002\'">␂</span>',
  365 + '\u0003': '<span style="content: \'\\0003\'">␃</span>',
  366 + '\u0004': '<span style="content: \'\\0004\'">␄</span>',
  367 + '\u0005': '<span style="content: \'\\0005\'">␅</span>',
  368 + '\u0006': '<span style="content: \'\\0006\'">␆</span>',
  369 + '\u0007': '<span style="content: \'\\0007\'">␇</span>',
  370 + '\u0008': '<span style="content: \'\\0008\'">␈</span>',
  371 + '\u000b': '<span style="content: \'\\000b\'">␋</span>',
  372 + '\u000c': '<span style="content: \'\\000c\'">␌</span>',
  373 + '\u000e': '<span style="content: \'\\000e\'">␎</span>',
  374 + '\u000f': '<span style="content: \'\\000f\'">␏</span>',
  375 + '\u0010': '<span style="content: \'\\0010\'">␐</span>',
  376 + '\u0011': '<span style="content: \'\\0011\'">␑</span>',
  377 + '\u0012': '<span style="content: \'\\0012\'">␒</span>',
  378 + '\u0013': '<span style="content: \'\\0013\'">␓</span>',
  379 + '\u0014': '<span style="content: \'\\0014\'">␔</span>',
  380 + '\u0015': '<span style="content: \'\\0015\'">␕</span>',
  381 + '\u0016': '<span style="content: \'\\0016\'">␖</span>',
  382 + '\u0017': '<span style="content: \'\\0017\'">␗</span>',
  383 + '\u0018': '<span style="content: \'\\0018\'">␘</span>',
  384 + '\u0019': '<span style="content: \'\\0019\'">␙</span>',
  385 + '\u001a': '<span style="content: \'\\001a\'">␚</span>',
  386 + '\u001b': '<span style="content: \'\\001b\'">␛</span>',
  387 + '\u001c': '<span style="content: \'\\001c\'">␜</span>',
  388 + '\u001d': '<span style="content: \'\\001d\'">␝</span>',
  389 + '\u001e': '<span style="content: \'\\001e\'">␞</span>',
  390 + '\u001f': '<span style="content: \'\\001f\'">␟</span>'
391 391 }
392 392 var default_parser=function(c)
393 393 {

0 comments on commit 912139a

Please sign in to comment.
Something went wrong with that request. Please try again.