[patchew-devel] Re: [PATCH 0/9] ANSI to HTML conversion for the log viewer

  • From: Fam Zheng <famz@xxxxxxxxxx>
  • To: Paolo Bonzini <pbonzini@xxxxxxxxxx>
  • Date: Thu, 1 Mar 2018 14:52:23 +0800

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!

Now I'm done, thanks.  I am not able to review line by line but I'll trust the
tests and your demo
page. :)

I'm not sure if you want any change for the comment I replied to, so I'll leave
it for you to push the code:

Reviewed-by: Fam Zheng <famz@xxxxxxxxxx>

Other related posts: