Mercurial > hg > mercurial-crew-with-dirclash
comparison mercurial/templater.py @ 2535:b8ccf6386db7
Arrange for old copies of CGI scripts to still work.
author | Eric Hopper <hopper@omnifarious.org> |
---|---|
date | Thu, 29 Jun 2006 19:06:18 -0700 |
parents | fe1689273f84 |
children | 8a8d9ada4528 |
comparison
equal
deleted
inserted
replaced
2534:d5a3cc6520d5 | 2535:b8ccf6386db7 |
---|---|
200 '''fill many paragraphs.''' | 200 '''fill many paragraphs.''' |
201 global para_re, space_re | 201 global para_re, space_re |
202 if para_re is None: | 202 if para_re is None: |
203 para_re = re.compile('(\n\n|\n\\s*[-*]\\s*)', re.M) | 203 para_re = re.compile('(\n\n|\n\\s*[-*]\\s*)', re.M) |
204 space_re = re.compile(r' +') | 204 space_re = re.compile(r' +') |
205 | 205 |
206 def findparas(): | 206 def findparas(): |
207 start = 0 | 207 start = 0 |
208 while True: | 208 while True: |
209 m = para_re.search(text, start) | 209 m = para_re.search(text, start) |
210 if not m: | 210 if not m: |