Empty lines are kept during conversion

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

If the input string includes empty lines, they are kept during conversion. This may not always cause problems, but if the input HTML is a bit odd, then the output BBCode will also look odd. I think it's much better to stick to the tags and totally ignore the empty lines. Technically, this will not cause a problem since the BBCode engine will handle it, but improving the output would be nice.

Input:

<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>



<p>Maecenas lorem mi, porttitor at varius vel, condimentum et nunc.</p>

Output:

Lorem ipsum dolor sit amet, consectetur adipiscing elit.



Maecenas lorem mi, porttitor at varius vel, condimentum et nunc.

Expected Output:

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Maecenas lorem mi, porttitor at varius vel, condimentum et nunc.

May be related to issue #5

Comments (1)

  1. Log in to comment