mirror of
https://github.com/systemd/systemd
synced 2024-07-21 18:24:38 +00:00
make-man-index: work around UnicodeDecodeError
This commit is contained in:
parent
f6b6728d1d
commit
dd6f5e4fb8
|
@ -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')
|
||||
|
||||
|
|
Loading…
Reference in a new issue