summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2004-06-19 14:55:35 +0000
committerSimon Tatham <anakin@pobox.com>2004-06-19 14:55:35 +0000
commitc215fb02d044e0adae5301b14fcf4368c902b889 (patch)
tree0ebf11942d98a4c62973240838cdb6f68d0e47e9
parentb789f9bb4f9a28e50289801d58d9c5be0bf161f1 (diff)
downloadhalibut-c215fb02d044e0adae5301b14fcf4368c902b889.zip
halibut-c215fb02d044e0adae5301b14fcf4368c902b889.tar.gz
halibut-c215fb02d044e0adae5301b14fcf4368c902b889.tar.bz2
halibut-c215fb02d044e0adae5301b14fcf4368c902b889.tar.xz
I had somehow managed to leave index entry anchors out of section
titles. Ahem. [originally from svn r4292]
-rw-r--r--bk_html.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/bk_html.c b/bk_html.c
index a4ee338..bb98eb8 100644
--- a/bk_html.c
+++ b/bk_html.c
@@ -214,7 +214,7 @@ static void html_contents_entry(htmloutput *ho, int depth, htmlsect *s,
htmlconfig *cfg);
static void html_section_title(htmloutput *ho, htmlsect *s,
htmlfile *thisfile, keywordlist *keywords,
- htmlconfig *cfg);
+ htmlconfig *cfg, int real);
static htmlconfig html_configure(paragraph *source) {
htmlconfig ret;
@@ -994,7 +994,7 @@ void html_backend(paragraph *sourceform, keywordlist *keywords,
element_attr(&ho, "name", s->fragment);
element_close(&ho, "a");
- html_section_title(&ho, s, f, keywords, &conf);
+ html_section_title(&ho, s, f, keywords, &conf, TRUE);
element_close(&ho, htag);
@@ -1883,13 +1883,14 @@ static void html_contents_entry(htmloutput *ho, int depth, htmlsect *s,
element_open(ho, "li");
html_href(ho, thisfile, s->file, s->fragment);
- html_section_title(ho, s, thisfile, keywords, cfg);
+ html_section_title(ho, s, thisfile, keywords, cfg, FALSE);
element_close(ho, "a");
element_close(ho, "li");
}
static void html_section_title(htmloutput *ho, htmlsect *s, htmlfile *thisfile,
- keywordlist *keywords, htmlconfig *cfg)
+ keywordlist *keywords, htmlconfig *cfg,
+ int real)
{
if (s->title) {
sectlevel *sl;
@@ -1918,7 +1919,7 @@ static void html_section_title(htmloutput *ho, htmlsect *s, htmlfile *thisfile,
html_text(ho, sl->number_suffix);
}
- html_words(ho, s->title->words, MARKUP,
+ html_words(ho, s->title->words, real ? ALL : MARKUP,
thisfile, keywords, cfg);
} else {
assert(s->type != NORMAL);