On Mon, 02/26 12:27, Paolo Bonzini wrote:
Unlike the ansi2html module from PyPI, this implementation focuses on
tracking the formatting within a line. As a result, it provides nice
HTML output for e.g. carriage returns or tabs. There are many test
cases that were checked against vte, and a huge repetitive CSS (which was
generated by a small program), so don't let the diffstats scare you. :)
Since the sample database does not have ANSI control codes, I took a
Travis log and placed a sample conversion here:
- text source: http://people.redhat.com/pbonzini/log.txt
- HTML output: http://people.redhat.com/pbonzini/log.html
Note that the HTML output is 20% the size of the source, because carriage
returns are optimized out!