summaryrefslogtreecommitdiff
path: root/bk_html.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2005-01-24 12:37:04 +0000
committerSimon Tatham <anakin@pobox.com>2005-01-24 12:37:04 +0000
commitffcdd42f7f9d5238f2bd6c36aaf2f26728858e4d (patch)
treeef536ae2001c0e9964aee7388166c7cc1e04cbce /bk_html.c
parent42f031beed5f6a455e6a7725a3a14710d3702f60 (diff)
downloadhalibut-ffcdd42f7f9d5238f2bd6c36aaf2f26728858e4d.zip
halibut-ffcdd42f7f9d5238f2bd6c36aaf2f26728858e4d.tar.gz
halibut-ffcdd42f7f9d5238f2bd6c36aaf2f26728858e4d.tar.bz2
halibut-ffcdd42f7f9d5238f2bd6c36aaf2f26728858e4d.tar.xz
Added a new config directive `html-local-head', which permits me to
put an AppleTitle tag in only one of a set of output HTML files. [originally from svn r5192]
Diffstat (limited to 'bk_html.c')
-rw-r--r--bk_html.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/bk_html.c b/bk_html.c
index 1bd573a..96a8982 100644
--- a/bk_html.c
+++ b/bk_html.c
@@ -826,6 +826,25 @@ void html_backend(paragraph *sourceform, keywordlist *keywords,
if (conf.head_end)
html_raw(&ho, conf.head_end);
+ /*
+ * Add any <head> data defined in specific sections
+ * that go in this file. (This is mostly to allow <meta
+ * name="AppleTitle"> tags for Mac online help.)
+ */
+ for (s = sects.head; s; s = s->next) {
+ if (s->file == f && s->text) {
+ for (p = s->text;
+ p && (p == s->text || !is_heading_type(p->type));
+ p = p->next) {
+ if (p->type == para_Config) {
+ if (!ustricmp(p->keyword, L"html-local-head")) {
+ html_raw(&ho, adv(p->origkeyword));
+ }
+ }
+ }
+ }
+ }
+
element_close(&ho, "head");
html_nl(&ho);