From 68a5185678e9d000c71ebb7a4f153c27a7482124 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sun, 20 Jun 2004 13:11:34 +0000 Subject: Introduce a configurable option to select the HTML flavour. Also fiddle with various small aspects of the output so that it actually validates in all supported flavours. [originally from svn r4307] --- error.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'error.c') diff --git a/error.c b/error.c index 879d081..0330e76 100644 --- a/error.c +++ b/error.c @@ -249,6 +249,14 @@ static void do_error(int code, va_list ap) { " than body width %d", i, j); flags = FILEPOS; break; + case err_htmlver: + fpos = *va_arg(ap, filepos *); + wsp = va_arg(ap, wchar_t *); + sp = utoa_locale_dup(wsp); + sprintf(error, "unrecognised HTML version keyword `%.200s'", sp); + sfree(sp); + flags = FILEPOS; + break; case err_whatever: sp = va_arg(ap, char *); vsprintf(error, sp, ap); -- cgit v1.1