# HG changeset patch # User Matt Mackall # Date 1316284670 18000 # Node ID efa213b14ec0dc15e8f9587b133fbb3acbb88e8e # Parent 0ad0ebe678151800a7894c4bc753d143c495d5fc minirst: remove some whitespace diff -r 0ad0ebe67815 -r efa213b14ec0 mercurial/minirst.py --- a/mercurial/minirst.py Sat Sep 17 13:37:49 2011 -0500 +++ b/mercurial/minirst.py Sat Sep 17 13:37:50 2011 -0500 @@ -22,7 +22,6 @@ import util, encoding from i18n import _ - def replace(text, substs): for f, t in substs: text = text.replace(f, t) @@ -44,7 +43,6 @@ blocks.append(dict(indent=indent, lines=lines)) return blocks - def findliteralblocks(blocks): """Finds literal blocks and adds a 'type' field to the blocks. @@ -145,7 +143,6 @@ i += 1 return blocks - _fieldwidth = 12 def updatefieldlists(blocks): @@ -172,7 +169,6 @@ return blocks - def updateoptionlists(blocks): i = 0 while i < len(blocks): @@ -247,7 +243,6 @@ i += 1 return blocks, pruned - _sectionre = re.compile(r"""^([-=`:.'"~^_*+#])\1+$""") def findtables(blocks): @@ -312,7 +307,6 @@ del block['lines'][1] return blocks - def inlineliterals(blocks): substs = [('``', '"')] for b in blocks: @@ -320,7 +314,6 @@ b['lines'] = [replace(l, substs) for l in b['lines']] return blocks - def hgrole(blocks): substs = [(':hg:`', '"hg '), ('`', '"')] for b in blocks: @@ -332,7 +325,6 @@ b['lines'] = [replace(l, substs) for l in b['lines']] return blocks - def addmargins(blocks): """Adds empty blocks for vertical spacing.