Показать сообщение отдельно

  #5  
Старый 22.04.2008, 21:29
astrologer
Постоянный
Регистрация: 30.08.2007
Сообщений: 773
Провел на форуме:
3069349

Репутация: 808


По умолчанию

Это:
Код:
var content = "test
test";
не работает по правилам JS, библиотека тут не при чём.
Читаем спецификацию ecma-262:
Цитата:
7.3 Line Terminators
Like white space characters, line terminator characters are used to improve source text readability and to
separate tokens (indivisible lexical units) from each other. However, unlike white space characters, line
terminators have some influence over the behaviour of the syntactic grammar. In general, line terminators
may occur between any two tokens, but there are a few places where they are forbidden by the syntactic
grammar. A line terminator cannot occur within any token, not even a string. Line terminators also affect
the process of automatic semicolon insertion (7.8.5).
The following characters are considered to be line terminators:

Код:
Code Point Value   Name                 Formal Name
\u000A             Line Feed            <LF>
\u000D             Carriage Return      <CR>
\u2028             Line separator       <LS>
\u2029             Paragraph separator  <PS>
 
Ответить с цитированием