Introduce a configurable option to select the HTML flavour. Also
[sgt/halibut] / error.c
diff --git a/error.c b/error.c
index 879d081..0330e76 100644 (file)
--- 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);