From f3bcc430298edf9a72becfb14ee99e924e4ff2c0 Mon Sep 17 00:00:00 2001 From: Jacob Nevins Date: Tue, 8 Mar 2005 01:55:34 +0000 Subject: 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] --- bk_info.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bk_info.c') diff --git a/bk_info.c b/bk_info.c index 48ad45e..85461c4 100644 --- a/bk_info.c +++ b/bk_info.c @@ -316,12 +316,12 @@ void info_backend(paragraph *sourceform, keywordlist *keywords, char *s; section = uadv(p->keyword); - shortname = *section ? uadv(section) : NULL; - longname = *shortname ? uadv(shortname) : NULL; - kw = *longname ? uadv(longname) : NULL; + shortname = *section ? uadv(section) : L""; + longname = *shortname ? uadv(shortname) : L""; + kw = *longname ? uadv(longname) : L""; if (!*longname) { - error(err_infodirentry, &p->fpos); + error(err_cfginsufarg, &p->fpos, p->origkeyword, 3); continue; } -- cgit v1.1