diff options
| author | Simon Tatham <anakin@pobox.com> | 2004-06-20 13:11:34 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2004-06-20 13:11:34 +0000 |
| commit | 68a5185678e9d000c71ebb7a4f153c27a7482124 (patch) | |
| tree | 3adacc72e32e4feccc6f2b633473b61974b7cd52 /error.c | |
| parent | e43b0f797c0fdf00b38fad69bbbf85a4b068cf9f (diff) | |
| download | halibut-68a5185678e9d000c71ebb7a4f153c27a7482124.zip halibut-68a5185678e9d000c71ebb7a4f153c27a7482124.tar.gz halibut-68a5185678e9d000c71ebb7a4f153c27a7482124.tar.bz2 halibut-68a5185678e9d000c71ebb7a4f153c27a7482124.tar.xz | |
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]
Diffstat (limited to 'error.c')
| -rw-r--r-- | error.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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); |