1. Alexander Solovyov
  2. sphinxedhg

Commits

Alexander Solovyov  committed 49345da

now be more strict about formatting :)

  • Participants
  • Parent commits 5420032
  • Branches default

Comments (0)

Files changed (1)

File test2rst.py

View file
 
 import os, os.path as op, re, sys
 
-CODEBLOCK = re.compile(r'\n(([^ ].|.[^ ])[^\n]*)\n+  ')
+# line starts with two chars one of which is not a space (and both are not
+# newlines obviously) and ends with one or more newlines followed by two spaces
+# on a next line (indented text)
+CODEBLOCK = re.compile(r'\n(([^ \n][^\n]|[^\n][^ \n])[^\n]*)\n+  ')
+
 INDEX = '''
 Mercurial tests
 ===============