Fix Bug 405744: Keep namespace declarations when --keep-editor-data. Add tests.

This commit is contained in:
JSCHILL1 2009-07-28 08:33:30 -05:00
parent 4ee372f561
commit 8f50f0d509
3 changed files with 44 additions and 13 deletions

View file

@ -83,6 +83,7 @@ class ScourOptions:
group_collapse = True
strip_ids = False
digits = 5
embed_rasters = False
keep_editor_data = False
# params are the form elements (if a checkbox is unchecked it will not be present)
@ -104,6 +105,6 @@ def fetch(req, indoc,**params):
fileitem = fs['upload']
if fileitem.filename:
req.write(scourString(fileitem.file.read()))
req.write(scourString(fileitem.file.read(), options))
else:
req.write(scourString(indoc,options))