comparison mercurial/help.py @ 18748:6e676fb6ea44

help: use a full header for topic titles ...for prettier HTML!
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Sun, 10 Feb 2013 12:58:57 +0100
parents c0087d48ec3a
children 83d79a00cc24
comparison
equal deleted inserted replaced
18747:f5db3092790f 18748:6e676fb6ea44
392 if name in names: 392 if name in names:
393 break 393 break
394 else: 394 else:
395 raise error.UnknownCommand(name) 395 raise error.UnknownCommand(name)
396 396
397 rst = ["%s\n\n" % header] 397 rst = [minirst.section(header)]
398
398 # description 399 # description
399 if not doc: 400 if not doc:
400 rst.append(" %s\n" % _("(no help text available)")) 401 rst.append(" %s\n" % _("(no help text available)"))
401 if util.safehasattr(doc, '__call__'): 402 if util.safehasattr(doc, '__call__'):
402 rst += [" %s\n" % l for l in doc().splitlines()] 403 rst += [" %s\n" % l for l in doc().splitlines()]