ansi_html()
bug when strings with the same style have been pasted together
#752
Labels
bug
an unexpected problem or unintended behavior
I'm observing an error with
ansi_html()
when strings with the same styles have been pasted together. An example:Note only the first space is styled with the correct background color and the remaining nine spaces are unstyled. In contrast I believe the right output should instead be:
(note the different placement of the
</span>
). In contrastfansi::sgr_to_html()
seems to correctly preserve a style for all ten spaces:The text was updated successfully, but these errors were encountered: