aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2013-01-23 23:26:13 -0500
committerRalph Amissah <ralph@amissah.com>2013-01-23 23:26:13 -0500
commitedbb402e1f060edab79e2a562efe49866163be23 (patch)
tree0d7cdc55c16196b33aa40d5faa203b5465babdb0
parent v4: sysenv, debug tag, triggered where output type not set (diff)
v4 v3: dal_doc_objects, cosmetic, code arrangement, minor
-rw-r--r--lib/sisu/v3/dal_doc_objects.rb6
-rw-r--r--lib/sisu/v4/dal_doc_objects.rb6
2 files changed, 8 insertions, 4 deletions
diff --git a/lib/sisu/v3/dal_doc_objects.rb b/lib/sisu/v3/dal_doc_objects.rb
index 70a4913d..37dfdcd3 100644
--- a/lib/sisu/v3/dal_doc_objects.rb
+++ b/lib/sisu/v3/dal_doc_objects.rb
@@ -128,9 +128,11 @@ module SiSU_DAL_DocumentStructure
end
end
def heading(h,o=nil)
- if not h[:ln] and (h[:lv] and h[:lv]=~/[1-6A-C]/)
+ if not h[:ln] \
+ and (h[:lv] and h[:lv]=~/[1-6A-C]/)
h[:ln]=heading_ln(h[:lv])
- elsif not h[:lv] and (h[:ln] and h[:ln].to_s=~/[1-9]/)
+ elsif not h[:lv] \
+ and (h[:ln] and h[:ln].to_s=~/[1-9]/)
h[:lv]=heading_lv(h[:ln])
end
of= @of #String, classification - group
diff --git a/lib/sisu/v4/dal_doc_objects.rb b/lib/sisu/v4/dal_doc_objects.rb
index 70a4913d..37dfdcd3 100644
--- a/lib/sisu/v4/dal_doc_objects.rb
+++ b/lib/sisu/v4/dal_doc_objects.rb
@@ -128,9 +128,11 @@ module SiSU_DAL_DocumentStructure
end
end
def heading(h,o=nil)
- if not h[:ln] and (h[:lv] and h[:lv]=~/[1-6A-C]/)
+ if not h[:ln] \
+ and (h[:lv] and h[:lv]=~/[1-6A-C]/)
h[:ln]=heading_ln(h[:lv])
- elsif not h[:lv] and (h[:ln] and h[:ln].to_s=~/[1-9]/)
+ elsif not h[:lv] \
+ and (h[:ln] and h[:ln].to_s=~/[1-9]/)
h[:lv]=heading_lv(h[:ln])
end
of= @of #String, classification - group