Mercurial > hg
comparison mercurial/templater.py @ 2539:8a8d9ada4528
Merged WSGI fixes from http://hg.omnifarious.org/~hopper/webmerc/
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 30 Jun 2006 21:36:45 +0200 |
parents | deb466fa6957 b8ccf6386db7 |
children | bf67d0f6531c |
comparison
equal
deleted
inserted
replaced
2531:7a90e0c77f43 | 2539:8a8d9ada4528 |
---|---|
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: |