theZiz / aha

Ansi HTML Adapter
Other
907 stars 88 forks source link

Remove extra linebreak at end #60

Closed rhendric closed 5 years ago

rhendric commented 5 years ago

Hey, aha is pretty cool! I'm using it in conjuction with wkhtmltoimage to capture clean ‘screenshots’ of terminal output.

One issue I've noticed is that the images thus produced often have an extra blank line at the end, which I think is due to this \n inserted with the span close tag when there's some ANSI formatting still in effect at the last character—this PR takes it out.

theZiz commented 5 years ago

You are probably right, thanks for the fix! :+1: