Html formatter doesn't work together with whitespace

Create issue
Issue #1136 duplicate
Gennady Kupava created an issue

This doesn't work:

$ pygmentize -F whitespace:tabs=true,spaces=true -f html -l c test.cc

*** Error while highlighting: TypeError: expected a character buffer object (file "/usr/lib/python2.7/dist-packages/pygments/formatters/html.py", line 709, in _format_lines)

This works:

$ pygmentize -F whitespace:tabs=true,spaces=true -l c test.cc

This works too:

pygmentize -F whitespace:tabs=true,spaces=true,newlines=True -f html -l c test.cc

test.cc contains anything which include at least two lines and one line with spaces

Comments (2)

  1. Log in to comment