From 0a6f8a5666e6df99ab90070514d5704fe2d8ba41 Mon Sep 17 00:00:00 2001 From: Alex Goodman Date: Fri, 2 Feb 2018 14:30:56 -0500 Subject: unicode issue --- diff2HtmlCompare.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diff2HtmlCompare.py b/diff2HtmlCompare.py index e920e26..4dbdc67 100644 --- a/diff2HtmlCompare.py +++ b/diff2HtmlCompare.py @@ -238,7 +238,7 @@ class DiffHtmlFormatter(HtmlFormatter): for t, line in inner: if t: lncount += 1 - dummyoutfile.write(line) + dummyoutfile.write(unicode(line)) fl = self.linenostart mw = len(str(lncount + fl - 1)) -- cgit