From 8b7d993d70c05f4d68bad30cdc08d8af771d0707 Mon Sep 17 00:00:00 2001 From: simon Date: Tue, 30 Mar 2004 20:01:44 +0000 Subject: [PATCH] Make \ii work! git-svn-id: svn://svn.tartarus.org/sgt/halibut@4003 cda61777-01e9-0310-a592-d414129be87e --- input.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/input.c b/input.c index 95a7709..4c3b10d 100644 --- a/input.c +++ b/input.c @@ -999,8 +999,16 @@ static void read_file(paragraph ***ret, input *in, indexdata *idx) { } if (sitem->type & stack_idx) { indexword->text = ustrdup(indexstr.text); - if (index_downcase) + if (index_downcase) { + word *w; + ustrlow(indexword->text); + ustrlow(indexstr.text); + + for (w = idxwordlist; w; w = w->next) + if (w->text) + ustrlow(w->text); + } indexing = FALSE; rdadd(&indexstr, L'\0'); index_merge(idx, FALSE, indexstr.text, idxwordlist); -- 2.11.0