diff options
author | Ralph Amissah <ralph@amissah.com> | 2013-09-05 23:48:01 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2013-09-05 23:48:01 -0400 |
commit | 8de2070836155d57f345e760c60e3c519e895c2a (patch) | |
tree | 228e7f0c17a4bde682a777eee304cde4e0ba0ec0 /lib/sisu/v4/dal_doc_str.rb | |
parent | debian/changelog (4.2.1-1) (diff) | |
parent | v5: 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.rb | 3 |
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 |