Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'simpleLineBreaks' doesn't work when a line ends with a Chinese character #318

Closed
chaoshxxu opened this issue Dec 23, 2016 · 2 comments
Closed
Assignees
Labels

Comments

@chaoshxxu
Copy link

chaoshxxu commented Dec 23, 2016

foo烫
bar

foo
bar

Despite setting 'simpleLineBreaks' to true, the fragment above is rendered to:

<p>foo烫
bar</p>
<p>foo<br>
bar</p>

This issue can be reproduced in v1.5.4, while OK in v1.5.1

@tivie tivie self-assigned this Dec 23, 2016
@tivie tivie added the bug label Dec 23, 2016
@tivie
Copy link
Member

tivie commented Dec 23, 2016

version 1.5.1 had a bug with simpleLineBreaks in lists (see #316 )
The regex was changed to only add line breaks in word boundaries.

Edit: It seems javascript \b does not recognise anything other that ASCII characters as, well "word characters" which is idiotic.

@tivie
Copy link
Member

tivie commented Jan 6, 2017

Related to #323
Should be fixed in latest develop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants