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

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

This works:

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

This works too:

pygmentize -F whitespace:tabs=true,spaces=true,newlines=True -f html -l c contains anything which include at least two lines and one line with spaces

Comments (2)

  1. Log in to comment