diff options
author | Ralph Amissah <ralph@amissah.com> | 2010-10-17 13:36:33 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2010-10-17 13:36:33 -0400 |
commit | e681ba98d51ddc437c465defe44fb797f5154979 (patch) | |
tree | f97ba70e8d09e5aa170d1a0c11d6668191489a6b /lib/sisu/v2/dal_doc_str.rb | |
parent | debian/changelog 2.7.6-1 (diff) | |
parent | version date (diff) |
Merge branch 'upstream' into debian/sid
Diffstat (limited to 'lib/sisu/v2/dal_doc_str.rb')
-rw-r--r-- | lib/sisu/v2/dal_doc_str.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sisu/v2/dal_doc_str.rb b/lib/sisu/v2/dal_doc_str.rb index 2d4ee192..6eb2ee69 100644 --- a/lib/sisu/v2/dal_doc_str.rb +++ b/lib/sisu/v2/dal_doc_str.rb @@ -198,6 +198,7 @@ module SiSU_document_structure_extract if t_o =~/^code\{/ @@flag['code']=true @@counter=1 + @codeblock_numbered=(t_o =~/^code\{#/) ? true : false h={:obj=>'code block start'} #introduce a counter t_o=SiSU_document_structure::Object_comment.new.comment(h) #t_o=SiSU_document_structure::Object_layout.new.insert(h) elsif t_o =~/^poem\{/ @@ -314,7 +315,7 @@ module SiSU_document_structure_extract if t_o =~/^\}code/ @@flag['code']=false obj,tags=extract_tags(@tuned_code.join("\n")) - h={:obj=>obj,:tags=>tags} + h={:obj=>obj,:tags=>tags,:number_=>@codeblock_numbered} t_o=SiSU_document_structure::Object_group.new.code(h) @tuned_code=[] tuned_file << t_o |