aboutsummaryrefslogtreecommitdiffhomepage
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
parentv5 v6: indent spaces, minor (diff)
v5 v6: ao, code blocks, clean trailing newlines
-rw-r--r--data/doc/sisu/CHANGELOG_v54
-rw-r--r--data/doc/sisu/CHANGELOG_v64
-rw-r--r--lib/sisu/v5/ao_doc_str.rb1
-rw-r--r--lib/sisu/v6/ao_doc_str.rb1
4 files changed, 8 insertions, 2 deletions
diff --git a/data/doc/sisu/CHANGELOG_v5 b/data/doc/sisu/CHANGELOG_v5
index 99f59534..c20bbef3 100644
--- a/data/doc/sisu/CHANGELOG_v5
+++ b/data/doc/sisu/CHANGELOG_v5
@@ -38,7 +38,9 @@ http://www.jus.uio.no/sisu/pkg/src/sisu_5.4.1.orig.tar.xz
sisu_5.4.1.orig.tar.xz
sisu_5.4.1-1.dsc
-* ao, misc, minorish
+* ao,
+ * code blocks, clean trailing newlines
+ * misc, minorish
%% 5.4.0.orig.tar.xz (2014-05-25:20/7)
http://sources.sisudoc.org/gitweb/?p=code/sisu.git;a=shortlog;h=refs/tags/sisu_5.4.0
diff --git a/data/doc/sisu/CHANGELOG_v6 b/data/doc/sisu/CHANGELOG_v6
index 645d482d..55804b1c 100644
--- a/data/doc/sisu/CHANGELOG_v6
+++ b/data/doc/sisu/CHANGELOG_v6
@@ -28,7 +28,9 @@ http://www.jus.uio.no/sisu/pkg/src/sisu_6.0.8.orig.tar.xz
sisu_6.0.8.orig.tar.xz
sisu_6.0.8-1.dsc
-* ao, misc, minorish
+* ao,
+ * code blocks, clean trailing newlines
+ * misc, minorish
%% 6.0.7.orig.tar.xz (2014-05-25:20/7)
http://sources.sisudoc.org/gitweb/?p=code/sisu.git;a=shortlog;h=refs/tags/sisu_6.0.7
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 }
diff --git a/lib/sisu/v6/ao_doc_str.rb b/lib/sisu/v6/ao_doc_str.rb
index 846a7027..db340aa3 100644
--- a/lib/sisu/v6/ao_doc_str.rb
+++ b/lib/sisu/v6/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 }