From 9aeb2343e59d1ca8df6f5e764aa33858b334a783 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Sat, 7 Sep 2013 01:37:52 -0400 Subject: v5: dal, book index, hash key, strip whitespace, a (required) fix --- data/doc/sisu/CHANGELOG_v4 | 2 ++ data/doc/sisu/CHANGELOG_v5 | 2 ++ lib/sisu/v5/dal_doc_str.rb | 3 ++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/data/doc/sisu/CHANGELOG_v4 b/data/doc/sisu/CHANGELOG_v4 index 850107e9..1992e796 100644 --- a/data/doc/sisu/CHANGELOG_v4 +++ b/data/doc/sisu/CHANGELOG_v4 @@ -30,6 +30,8 @@ http://www.jus.uio.no/sisu/pkg/src/sisu_4.2.3.orig.tar.xz sisu_4.2.3.orig.tar.xz sisu_4.2.3-1.dsc +[5.0.16 changes only] + %% 4.2.2.orig.tar.xz (2013-09-05:35/4) http://sources.sisudoc.org/gitweb/?p=code/sisu.git;a=shortlog;h=refs/tags/sisu_4.2.2 http://sources.sisudoc.org/gitweb/?p=code/sisu.git;a=shortlog;h=refs/tags/debian/sisu_4.2.2-1 diff --git a/data/doc/sisu/CHANGELOG_v5 b/data/doc/sisu/CHANGELOG_v5 index d1a3f920..ede6b1ae 100644 --- a/data/doc/sisu/CHANGELOG_v5 +++ b/data/doc/sisu/CHANGELOG_v5 @@ -30,6 +30,8 @@ http://www.jus.uio.no/sisu/pkg/src/sisu_5.0.16.orig.tar.xz sisu_5.0.16.orig.tar.xz sisu_5.0.16-1.dsc +* dal, book index, hash key, strip whitespace, a (required) fix + %% 5.0.15.orig.tar.xz (2013-09-05:35/4) http://sources.sisudoc.org/gitweb/?p=code/sisu.git;a=shortlog;h=refs/tags/sisu_5.0.15 http://sources.sisudoc.org/gitweb/?p=code/sisu.git;a=shortlog;h=refs/tags/debian/sisu_5.0.15-1 diff --git a/lib/sisu/v5/dal_doc_str.rb b/lib/sisu/v5/dal_doc_str.rb index 5b6c03bf..87e5c908 100644 --- a/lib/sisu/v5/dal_doc_str.rb +++ b/lib/sisu/v5/dal_doc_str.rb @@ -196,7 +196,8 @@ module SiSU_DAL_DocumentStructureExtract ? term_node : (term_node + '+0') term_nodes << term_node - @use,plus=rgx_idx_ocn_seg.match(term_node)[1,2] + use,plus=rgx_idx_ocn_seg.match(term_node)[1,2] + @use=use.strip idx_hash[@use]={ sub: [], plus: plus } unless idx_hash[@use] and defined? idx_hash[@use] when Array subterm_nodes=[] -- cgit v1.2.3