aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2011-03-10 08:53:34 -0500
committerRalph Amissah <ralph@amissah.com>2011-03-10 08:53:34 -0500
commitcbcf26cd1fcb5dd3f839a8b5de8caf441d957b5f (patch)
treee80d784c6c656993ca1af7a30aa20130f0d7a5cc /lib
parentv2, v3: dal_substitutions_and_insertions: sisu header matching in codeblock, fix (diff)
v2, v3: dal_doc_str: fix, looks like typo in regex
Diffstat (limited to 'lib')
-rw-r--r--lib/sisu/v2/dal_doc_str.rb2
-rw-r--r--lib/sisu/v3/dal_doc_str.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/sisu/v2/dal_doc_str.rb b/lib/sisu/v2/dal_doc_str.rb
index bca3cf7d..56bf205f 100644
--- a/lib/sisu/v2/dal_doc_str.rb
+++ b/lib/sisu/v2/dal_doc_str.rb
@@ -330,7 +330,7 @@ module SiSU_document_structure_extract
sub_array=t_o.dup + "#{Mx[:br_nl]}"
@line_mode=sub_array.scan(/.+/)
@line_mode=[]
- sub_array.scan(/.+/) {|w| @line_mode << w if w =~/[\Ss]+/}
+ sub_array.scan(/.+/) {|w| @line_mode << w if w =~/[\S]+/}
t_o=SiSU_document_structure_extract::Build.new(@md,@line_mode).build_lines('code').join
@tuned_code << t_o
t_o=nil
diff --git a/lib/sisu/v3/dal_doc_str.rb b/lib/sisu/v3/dal_doc_str.rb
index 365973eb..6ce77057 100644
--- a/lib/sisu/v3/dal_doc_str.rb
+++ b/lib/sisu/v3/dal_doc_str.rb
@@ -335,7 +335,7 @@ module SiSU_document_structure_extract
sub_array=t_o.dup + "#{Mx[:br_nl]}"
@line_mode=sub_array.scan(/.+/)
@line_mode=[]
- sub_array.scan(/.+/) {|w| @line_mode << w if w =~/[\Ss]+/}
+ sub_array.scan(/.+/) {|w| @line_mode << w if w =~/[\S]+/}
t_o=SiSU_document_structure_extract::Build.new(@md,@line_mode).build_lines('code').join
@tuned_code << t_o
t_o=nil