From dd6f5e4fb8a18822d1de8f98d5b24d1cb4d9e851 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Tue, 15 Jan 2013 10:34:59 -0500 Subject: [PATCH 1/1] make-man-index: work around UnicodeDecodeError --- make-man-index.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/make-man-index.py b/make-man-index.py index 5fa90aefd..2dbc2da99 100755 --- a/make-man-index.py +++ b/make-man-index.py @@ -21,6 +21,7 @@ import collections import xml.etree.ElementTree as tree import sys +MDASH = ' — ' if sys.version_info.major >= 3 else ' -- ' TEMPLATE = '''\ @@ -91,7 +92,7 @@ def add_letter(template, letter, pages): d = tree.SubElement(b, 'manvolnum') d.text = section - b.tail = ' — ' + purpose # + ' (' + p + ')' + b.tail = MDASH + purpose # + ' (' + p + ')' tree.SubElement(para, 'sbr') -- 2.30.2