Handling of line breaks is problematic

Create issue
Issue #4 invalid
Eren Inan Canpolat created an issue

The line breaks are converted into BBCode as is they are paragraphs. Converter inserts an empty line in addition to the line break. This behavior, I think, is not correct. Please see the example below.

Input:

<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. <br />
Fusce ultricies gravida lorem laoreet sagittis. <br />
Mauris non placerat erat. Ut eget suscipit risus.</p>

Output:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. 

Fusce ultricies gravida lorem laoreet sagittis. 

Mauris non placerat erat. Ut eget suscipit risus.

Expected Output:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. 
Fusce ultricies gravida lorem laoreet sagittis. 
Mauris non placerat erat. Ut eget suscipit risus.

Comments (1)

  1. Log in to comment