On 12/22/05, David Goodger <goodger@...> wrote:
> [Martin Blais]
> > Is there a way to disable the rst2html conversion creating nodes for
> > errors in the output document?
> No. "Errors should never pass silently, unless explicitly silenced."
> To explicitly silence them (i.e., remove them), run the
> docutils.transforms.universal.FilterMessages transform on the doctree.
3 secs ago just hacked exactly this and it worked:
> > What I'm doing is extracting data from the documents, and some of
> > the errors end up in my extracted data, where a nicer failure would
> > be empty data, or just what is there.
> What do "empty data" and "just what is there" mean?
if there is an error and the error prevents some text from being
included in the converted document, I would take the empty text over
This is for use with Nabu, for example, I have error messages
appearing in the contact info I'm extracting from my documents, for
example, the name "L. L. Lozeau" as a field value generates an error
(INFO/1) Enumerated list start value not ordinal-1: "L". The error
showed up in my extracted address book.