div elements are being treated as inline elements. As such, when they are stripped, the text within them is being joined together without spacing. E.g.
HTML::FormatText->format_string('<div>Line 1</div><div>Line 2</div>');
Produces
whereas I would expect it to produce
A simple fix seems to be to add $self->vspace(1) to HTML::Formatter::div_start().
divelements are being treated as inline elements. As such, when they are stripped, the text within them is being joined together without spacing. E.g.Produces
whereas I would expect it to produce
A simple fix seems to be to add
$self->vspace(1)toHTML::Formatter::div_start().