diff options
author | Georg Brandl <georg@python.org> | 2019-11-26 06:36:56 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2019-11-26 06:36:56 +0100 |
commit | 03328cedc35d2d59f3560a35f61add9eb0954f9f (patch) | |
tree | b00ea748c43726b2474bd129a0ce179ed63496ec | |
parent | 4b00eee004db36084960b385840aa03a5fa09c76 (diff) | |
download | pygments-git-03328cedc35d2d59f3560a35f61add9eb0954f9f.tar.gz |
html formatter: lineseparator needs to be unicode
Fixes #1053
-rw-r--r-- | pygments/formatters/html.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/formatters/html.py b/pygments/formatters/html.py index d65c09ce..042f04cf 100644 --- a/pygments/formatters/html.py +++ b/pygments/formatters/html.py @@ -435,7 +435,7 @@ class HtmlFormatter(Formatter): self.linenostep = abs(get_int_opt(options, 'linenostep', 1)) self.linenospecial = abs(get_int_opt(options, 'linenospecial', 0)) self.nobackground = get_bool_opt(options, 'nobackground', False) - self.lineseparator = options.get('lineseparator', '\n') + self.lineseparator = options.get('lineseparator', u'\n') self.lineanchors = options.get('lineanchors', '') self.linespans = options.get('linespans', '') self.anchorlinenos = options.get('anchorlinenos', False) |