doc/runrst
changeset 43730 15cccbacd5ce
parent 39489 4e4fae1dda5c
child 43731 47ef023d0165
equal deleted inserted replaced
43729:f7d7f9d23a7a 43730:15cccbacd5ce
    25                      "module is missing\n")
    25                      "module is missing\n")
    26     sys.stderr.write("please install python-docutils or see "
    26     sys.stderr.write("please install python-docutils or see "
    27                      "http://docutils.sourceforge.net/\n")
    27                      "http://docutils.sourceforge.net/\n")
    28     sys.exit(-1)
    28     sys.exit(-1)
    29 
    29 
    30 def role_hg(name, rawtext, text, lineno, inliner,
    30 def role_hg(name, rawtext, text, lineno, inliner, options=None, content=None):
    31             options={}, content=[]):
       
    32     text = "hg " + utils.unescape(text)
    31     text = "hg " + utils.unescape(text)
    33     linktext = nodes.literal(rawtext, text)
    32     linktext = nodes.literal(rawtext, text)
    34     parts = text.split()
    33     parts = text.split()
    35     cmd, args = parts[1], parts[2:]
    34     cmd, args = parts[1], parts[2:]
    36     refuri = "hg.1.html#%s" % cmd
    35     refuri = "hg.1.html#%s" % cmd