diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2013-10-02 22:22:06 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2013-10-02 22:22:06 -0400 |
commit | 9a5dad0b622112211c1385c84b4937baf3cf7cb0 (patch) | |
tree | eeb5fea63623c7770563a58c538a2519144d377b /src/HTML.c | |
parent | 150b76256f4da361a8dcb18ce1a15bda26a8c42a (diff) | |
download | lynx-snapshots-9a5dad0b622112211c1385c84b4937baf3cf7cb0.tar.gz |
snapshot of project "lynx", label v2-8-8dev_16h
Diffstat (limited to 'src/HTML.c')
-rw-r--r-- | src/HTML.c | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/src/HTML.c b/src/HTML.c index f16d72c4..f059af99 100644 --- a/src/HTML.c +++ b/src/HTML.c @@ -1,5 +1,5 @@ /* - * $LynxId: HTML.c,v 1.161 2013/06/12 09:18:40 tom Exp $ + * $LynxId: HTML.c,v 1.162 2013/10/02 22:22:06 tom Exp $ * * Structured stream to Rich hypertext converter * ============================================ @@ -253,18 +253,26 @@ BOOL LYBadHTML(HTStructured * me) */ void LYShowBadHTML(const char *message) { + if (dump_output_immediately && dump_to_stderr) + fprintf(stderr, "%s", message); + switch ((enumBadHtml) cfg_bad_html) { case BAD_HTML_IGNORE: break; case BAD_HTML_TRACE: - CTRACE((tfp, "%s", message)); - break; case BAD_HTML_MESSAGE: + case BAD_HTML_WARN: CTRACE((tfp, "%s", message)); - LYstore_message(message); break; + } + + switch ((enumBadHtml) cfg_bad_html) { + case BAD_HTML_IGNORE: + case BAD_HTML_TRACE: case BAD_HTML_WARN: - CTRACE((tfp, "%s", message)); + break; + case BAD_HTML_MESSAGE: + LYstore_message(message); break; } } |