diff options
author | Ralph Amissah <ralph@amissah.com> | 2011-11-21 00:06:15 -0500 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2011-11-21 00:06:15 -0500 |
commit | b5c036a6cc00ed4c507d93efd2e2e2053c9786f3 (patch) | |
tree | 0adbe3b9105ef09fabd059939800106c9b9c03fa /lib | |
parent | v3: 3.1.5 version & changelog "opened" (diff) |
v3: dal_expand_insertions, link shortcut for sisu documents, omit codeblocks
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sisu/v3/dal_expand_insertions.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/sisu/v3/dal_expand_insertions.rb b/lib/sisu/v3/dal_expand_insertions.rb index cef75432..cfd8fe54 100644 --- a/lib/sisu/v3/dal_expand_insertions.rb +++ b/lib/sisu/v3/dal_expand_insertions.rb @@ -258,8 +258,16 @@ module SiSU_insertions def expand_insertions? data=@data tuned_file,tuned_file_tmp=[],[] + codeblock_=false data.each do |para| + codeblock_=if para =~/^code\{/ + true + elsif para =~/^\}code/ + false + else codeblock_ + end if para !~/^%+\s/ \ + and not codeblock_ \ and para =~/\{(?:~\^\s+)?(.+?)\s\[(?:\d(?:[sS]*))\]\}(?:\.\.\/\S+?\/|\S+?\.ss[tm]\b)/ txt,cmd,source,linked_doc,note,manifest=nil,nil,nil,nil,nil,nil @u=SiSU_Env::Info_env.new.url |