diff options
| author | ianb <devnull@localhost> | 2005-08-22 03:18:03 +0000 |
|---|---|---|
| committer | ianb <devnull@localhost> | 2005-08-22 03:18:03 +0000 |
| commit | 81e43137537480ce5dc6b4f65a05b4822e9d3bb5 (patch) | |
| tree | f9acebed4802ac14c0b644024b3428cb92dd1bb9 /paste/docsupport/gensite.py | |
| parent | 166ae87df7bd0c4de9d0d8c64db1d0f28229ad69 (diff) | |
| download | paste-81e43137537480ce5dc6b4f65a05b4822e9d3bb5.tar.gz | |
Be more careful about where HTML documents end
Diffstat (limited to 'paste/docsupport/gensite.py')
| -rwxr-xr-x | paste/docsupport/gensite.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/paste/docsupport/gensite.py b/paste/docsupport/gensite.py index c0c7023..e8c10e0 100755 --- a/paste/docsupport/gensite.py +++ b/paste/docsupport/gensite.py @@ -107,7 +107,7 @@ class RestFile(object): #_start_re = re.compile(r'<div class=".*?" id="contents">') _start_re = re.compile(r'<body>[ \n]*(?:<div.*?>[ \n]*)?<h1.*?>.*?</h1>') - _end_re = re.compile(r'(?:</div>[ \n]*)?</div>[ \n]*</body>') + _end_re = re.compile(r'(?:</div>[ \n]*)?</div>[ \n]*</body>[\n\r ]*</html>[\n\r ]*$') _bad_res = [ (re.compile(r'<link rel="stylesheet".*?>'), ''), (re.compile(r'<h1 class="title">.*?</h1>'), ''), |
