summaryrefslogtreecommitdiff
path: root/contrib/tsearch2/ts_cfg.c
diff options
context:
space:
mode:
authorTeodor Sigaev <teodor@sigaev.ru>2004-06-28 16:19:09 +0000
committerTeodor Sigaev <teodor@sigaev.ru>2004-06-28 16:19:09 +0000
commitbb89237531439816c3f8d59b7b1891735e5f1f47 (patch)
treeafe5ab2775f14d1cd7652f38f909ba9ca15ced56 /contrib/tsearch2/ts_cfg.c
parente48cfacb8414231db82dc930995492085a260fc7 (diff)
downloadpostgresql-bb89237531439816c3f8d59b7b1891735e5f1f47.tar.gz
1 Eliminate duplicate field HLWORD->skip
2 Rework support for html tags in parser 3 add HighlightAll to headline function for generating highlighted whole text with saved html tags
Diffstat (limited to 'contrib/tsearch2/ts_cfg.c')
-rw-r--r--contrib/tsearch2/ts_cfg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/tsearch2/ts_cfg.c b/contrib/tsearch2/ts_cfg.c
index efd79a1e32..4e0a0bb904 100644
--- a/contrib/tsearch2/ts_cfg.c
+++ b/contrib/tsearch2/ts_cfg.c
@@ -510,7 +510,7 @@ genhl(HLPRSTEXT * prs)
ptr = ((char *) out) + dist;
}
- if (wrd->in && !wrd->skip && !wrd->repeated)
+ if (wrd->in && !wrd->repeated)
{
if (wrd->replace)
{
@@ -532,7 +532,7 @@ genhl(HLPRSTEXT * prs)
ptr += prs->stopsellen;
}
}
- }
+ } else
if (!wrd->repeated)
pfree(wrd->word);