tags 506315 + patch
forwarded 506315 
http://sourceforge.net/tracker/?func=detail&aid=2821266&group_id=38414&atid=422030
thanks

* Trent W. Buck <[email protected]>, 2008-11-21, 00:45:
I want an option that will make rst2html fail on the slightest hint of
a syntax error -- that is, for warnings become failures.
Thanks for your report. The attached patch fixes the problem.

Until the bug is fixed in Debian, as a work-around you may use the --halt=info option.

--
Jakub Wilk
diff --git a/docutils/frontend.py b/docutils/frontend.py
--- a/docutils/frontend.py
+++ b/docutils/frontend.py
@@ -387,7 +387,7 @@
                        'default': 4, 'metavar': '<level>',
                        'validator': validate_threshold}),
          ('Halt at the slightest problem.  Same as "--halt=info".',
-          ['--strict'], {'action': 'store_const', 'const': 'info',
+          ['--strict'], {'action': 'store_const', 'const': thresholds['info'],
                          'dest': 'halt_level'}),
          ('Enable a non-zero exit status for non-halting system messages at '
           'or above <level>.  Default: 5 (disabled).',
_______________________________________________
Python-modules-team mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/python-modules-team

Reply via email to