make-man-index: work around UnicodeDecodeError

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2013-01-15 10:34:59 -05:00
parent f6b6728d1d
commit dd6f5e4fb8

View file

@ -21,6 +21,7 @@
import collections
import xml.etree.ElementTree as tree
import sys
MDASH = '' if sys.version_info.major >= 3 else ' -- '
TEMPLATE = '''\
<refentry id="systemd.index">
@ -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')