Commit 395c8eaa authored by Ben Price's avatar Ben Price Committed by Ben Gamari

users guide: fix typesetting of pragmas

parent 5fcee8aa
......@@ -147,9 +147,10 @@ def parse_ghci_cmd(env, sig, signode):
return name
def parse_pragma(env, sig, signode):
name = sig.split(' ')[0]
signode += addnodes.desc_name('{-# '+name, sig + ' #-}')
return name
idx = sig.split(' ')[0]
name = '{-# ' + sig + ' #-}'
signode += addnodes.desc_name(name, name)
return idx
def parse_flag(env, sig, signode):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment