man: set description in italics in the index

This commit is contained in:
Lennart Poettering 2012-07-16 18:10:18 +02:00
parent 34511ca7b1
commit 92e1ecc62b

View file

@ -42,11 +42,14 @@ for n in sorted(index.keys(), key = str.lower):
ul = SubElement(body, 'ul') ul = SubElement(body, 'ul')
ul.set('style', 'list-style-type:none') ul.set('style', 'list-style-type:none')
li = SubElement(ul, 'li'); li = SubElement(ul, 'li')
a = SubElement(li, 'a'); a = SubElement(li, 'a')
a.set('href', path) a.set('href', path)
a.text = n + '(' + section + ')' a.text = n + '(' + section + ')'
a.tail = ' -- ' + purpose a.tail = ' -- '
i = SubElement(li, 'i')
i.text = purpose
stdout.write(tostring(html)) stdout.write(tostring(html))