aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v4/dal_doc_str.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2013-09-05 23:48:01 -0400
committerRalph Amissah <ralph@amissah.com>2013-09-05 23:48:01 -0400
commit8de2070836155d57f345e760c60e3c519e895c2a (patch)
tree228e7f0c17a4bde682a777eee304cde4e0ba0ec0 /lib/sisu/v4/dal_doc_str.rb
parentdebian/changelog (4.2.1-1) (diff)
parentv5: dal, objects, store book index as hash (simplify downstream processing) (diff)
Merge tag 'sisu_4.2.2' into debian/sid
SiSU 4.2.2
Diffstat (limited to 'lib/sisu/v4/dal_doc_str.rb')
-rw-r--r--lib/sisu/v4/dal_doc_str.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/sisu/v4/dal_doc_str.rb b/lib/sisu/v4/dal_doc_str.rb
index e7d9917b..2a3e6b83 100644
--- a/lib/sisu/v4/dal_doc_str.rb
+++ b/lib/sisu/v4/dal_doc_str.rb
@@ -203,6 +203,9 @@ module SiSU_DAL_DocumentStructureExtract
and @@flag[:table]==:off
unless t_o =~/^(?:@\S+?:|%+)\s/ # extract book index for paragraph if any
idx=if t_o=~/^=\{(.+)\}\s*$\Z/m; m=$1
+ m=m.split(/\n/).join(' ').
+ gsub(/\s+([|:;])\s+/,'\1').
+ gsub(/\s+([+])\s+/,'\1')
t_o=t_o.gsub(/\n=\{.+\}\s*$\Z/m,'')
m
else nil