aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v5/ao_doc_str.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2014-06-19 19:18:47 -0400
committerRalph Amissah <ralph@amissah.com>2014-06-19 19:18:47 -0400
commit5d168b3061ae8fbe3c2373827edce8de1bce4cfd (patch)
tree4da3ec60967c0316531dc49ed493d0c676257981 /lib/sisu/v5/ao_doc_str.rb
parentv5 v6: indent spaces, minor (diff)
v5 v6: ao, code blocks, clean trailing newlines
Diffstat (limited to 'lib/sisu/v5/ao_doc_str.rb')
-rw-r--r--lib/sisu/v5/ao_doc_str.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sisu/v5/ao_doc_str.rb b/lib/sisu/v5/ao_doc_str.rb
index 15d4aa9e..59361cc8 100644
--- a/lib/sisu/v5/ao_doc_str.rb
+++ b/lib/sisu/v5/ao_doc_str.rb
@@ -600,6 +600,7 @@ module SiSU_AO_DocumentStructureExtract
if (@@flag[:code]==:curls and t_o =~/^\}code/) \
or (@@flag[:code]==:tics and t_o =~/^[`]{3}(?:\s+[~-][#]|\s+\~\{.+?\}\~)?\s*$/)
@@flag[:code]=:off
+ @tuned_code[-1].gsub!(/\s*(?:#{Mx[:br_line]}|#{Mx[:br_nl]})\s*\Z/m,'')
obj=@tuned_code.join("\n")
tags=[]
h={ obj: obj, tags: tags, num: @num_code_block, number_: @codeblock_numbered }