summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2004-05-03 11:39:01 +0000
committerSimon Tatham <anakin@pobox.com>2004-05-03 11:39:01 +0000
commit9c877111685049b40c322cdc49d239eb39795dd9 (patch)
tree19791969bf3190013caa59c93c2b31f7e3798325
parent706b6f074e0ff3b923edc45bd906d804a2421a46 (diff)
downloadhalibut-9c877111685049b40c322cdc49d239eb39795dd9.zip
halibut-9c877111685049b40c322cdc49d239eb39795dd9.tar.gz
halibut-9c877111685049b40c322cdc49d239eb39795dd9.tar.bz2
halibut-9c877111685049b40c322cdc49d239eb39795dd9.tar.xz
Windows Help backend was only accepting \cfg{winhelp-filename} if it
had a parent pointer (owing to putting the test inside the wrong if block). This meant that the fake config directive added by --winhelp=foo.hlp worked fine, but the one at the top of PuTTY's first doc file didn't. Fixed. [originally from svn r4190]
-rw-r--r--bk_whlp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bk_whlp.c b/bk_whlp.c
index d11fd22..b146f94 100644
--- a/bk_whlp.c
+++ b/bk_whlp.c
@@ -97,8 +97,8 @@ void whlp_backend(paragraph *sourceform, keywordlist *keywords,
filename = dupstr("output.hlp");
for (p = sourceform; p; p = p->next) {
p->private_data = NULL;
- if (p->type == para_Config && p->parent) {
- if (!ustricmp(p->keyword, L"winhelp-topic")) {
+ if (p->type == para_Config) {
+ if (p->parent && !ustricmp(p->keyword, L"winhelp-topic")) {
char *topicname;
whlp_convert(uadv(p->keyword), 0, &topicname, 0);
/* Store the topic name in the private_data field of the