Skip to main content

set_ignore_diagnostics

Function set_ignore_diagnostics 

Source
pub fn set_ignore_diagnostics(ignore: bool) -> bool
Expand description

Perl $LaTeXML::IGNORE_ERRORS (Common/Error.pm L362/L380/L396: Error, Warn and Info all return if $LaTeXML::IGNORE_ERRORS): inside a probing scope every diagnostic is dropped WHOLE — neither its line nor its count — so the log and the status can never disagree about it. This is the only sanctioned way to silence a scope; muting lines while keeping counts (or the reverse) is exactly the log/status inconsistency the pipeline must not produce. Returns the previous value; restore it on every exit path.