From 1327ff7779e53416bbaf4785f21e5eb79095d3d0 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Tue, 4 Dec 2001 22:45:21 +0000 Subject: Remove the text-mode trappings (_emphasis_ and `code') in the index terms and section titles. They were unfortunately screwing up index sorting, so they had to go. [originally from svn r1455] --- bk_whlp.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/bk_whlp.c b/bk_whlp.c index d23357c..5341919 100644 --- a/bk_whlp.c +++ b/bk_whlp.c @@ -474,14 +474,6 @@ static void whlp_rdaddwc(rdstringc *rs, word *text) { case word_WkCodeQuote: assert(text->type != word_CodeQuote && text->type != word_WkCodeQuote); - if (towordstyle(text->type) == word_Emph && - (attraux(text->aux) == attr_First || - attraux(text->aux) == attr_Only)) - rdaddc(rs, '_'); /* FIXME: configurability */ - else if (towordstyle(text->type) == word_Code && - (attraux(text->aux) == attr_First || - attraux(text->aux) == attr_Only)) - rdaddc(rs, '\x91'); /* FIXME: configurability */ if (removeattr(text->type) == word_Normal) { if (whlp_convert(text->text, &c, FALSE)) rdaddsc(rs, c); @@ -494,14 +486,6 @@ static void whlp_rdaddwc(rdstringc *rs, word *text) { rdaddc(rs, quoteaux(text->aux) == quote_Open ? '\x91' : '\x92'); /* FIXME: configurability */ } - if (towordstyle(text->type) == word_Emph && - (attraux(text->aux) == attr_Last || - attraux(text->aux) == attr_Only)) - rdaddc(rs, '_'); /* FIXME: configurability */ - else if (towordstyle(text->type) == word_Code && - (attraux(text->aux) == attr_Last || - attraux(text->aux) == attr_Only)) - rdaddc(rs, '\x92'); /* FIXME: configurability */ break; } } -- cgit v1.1