diff options
| author | Jacob Nevins <jacobn@chiark.greenend.org.uk> | 2005-03-08 01:55:34 +0000 |
|---|---|---|
| committer | Jacob Nevins <jacobn@chiark.greenend.org.uk> | 2005-03-08 01:55:34 +0000 |
| commit | f3bcc430298edf9a72becfb14ee99e924e4ff2c0 (patch) | |
| tree | 12827d14915bf5292e60cacdc5f588bc9f817b34 /error.c | |
| parent | 39fd8836b1b449f727f90222d68447b5ef9ffd24 (diff) | |
| download | halibut-f3bcc430298edf9a72becfb14ee99e924e4ff2c0.zip halibut-f3bcc430298edf9a72becfb14ee99e924e4ff2c0.tar.gz halibut-f3bcc430298edf9a72becfb14ee99e924e4ff2c0.tar.bz2 halibut-f3bcc430298edf9a72becfb14ee99e924e4ff2c0.tar.xz | |
Ability to specify multiple arguments to \cfg{html-template-fragment};
Halibut will output fragment names in all specified formats. (I forget now
precisely why I thought this was necessary, but it seems potentially useful.)
Also ensure that legal fragment names are generated even if none of the
characters from the original turn out to be legal (e.g., %k with an entirely
numeric keyword), and correct an untruth I inserted in the documentation of
this.
(This commit hits more than just the HTML backend as I've generalised an error
message, and fixed a fault in the info backend's error handling while there.)
[originally from svn r5457]
Diffstat (limited to 'error.c')
| -rw-r--r-- | error.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -239,10 +239,12 @@ static void do_error(int code, va_list ap) { sp); flags = FILEPOS; break; - case err_infodirentry: + case err_cfginsufarg: fpos = *va_arg(ap, filepos *); - sprintf(error, "\\cfg{info-dir-entry} expects at least three" - " parameters"); + sp = va_arg(ap, char *); + i = va_arg(ap, int); + sprintf(error, "\\cfg{%s} expects at least %d parameter%s", sp, + i, (i==1)?"":"s"); flags = FILEPOS; break; case err_infonodechar: |