Project

General

Profile

Actions

Bug #1996

closed

JsStringLiteral and Line Separator & Paragraph Separator characters

Added by Wim Dumon almost 11 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
06/25/2013
Due date:
% Done:

0%

Estimated time:

Description

http://redmine.emweb.be/boards/2/topics/6891

Line separator characters in JS are:

\u000A Line Feed <LF>
\u000D Carriage Return <CR>
\u2028 Line separator <LS>
\u2029 Paragraph separator <PS>

Wt escapes and , but not or .

Actions #1

Updated by Koen Deforche almost 11 years ago

  • Status changed from New to Resolved
  • Target version set to 3.3.1

I've fixed this in my git copy.

The proper (but costly) fix would be to escape the character with \u2028 notation when outputting string literals but instead we chose to replace U+2028 and U+2029 with '\n' while validating UTF-8 input. If anyone has a real use case for these characters, wake me up.

Actions #2

Updated by Koen Deforche over 10 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF