aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v3/dal_numbering.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2011-09-05 10:36:28 -0400
committerRalph Amissah <ralph@amissah.com>2011-09-05 10:41:45 -0400
commit7bc559f85cb0b6c6f4cdfe127a386573b4c5d8ce (patch)
tree4d7832a654779710edbf304437be8ee8ab0e6dc7 /lib/sisu/v3/dal_numbering.rb
parentv3: 3.0.17 version & changelog "opened" (diff)
v3: unix conditional tests (? :) remove line break markers before : cosmetic
Diffstat (limited to 'lib/sisu/v3/dal_numbering.rb')
-rw-r--r--lib/sisu/v3/dal_numbering.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sisu/v3/dal_numbering.rb b/lib/sisu/v3/dal_numbering.rb
index 0a49c3da..52cb4c7f 100644
--- a/lib/sisu/v3/dal_numbering.rb
+++ b/lib/sisu/v3/dal_numbering.rb
@@ -169,7 +169,7 @@ module SiSU_numbering
tag=heading_tag_clean(tag)
dob.tags=[tag,dob.tags].flatten if tag !~/^\d+$/ #check whether will work across file types with stop signs
(dob.obj =~/(Article|Clause|Section)\s+/) \
- ? (dob.obj.gsub!(/(Article|Clause|Section)\s+/,"\\1 #{title_no} ")) \
+ ? (dob.obj.gsub!(/(Article|Clause|Section)\s+/,"\\1 #{title_no} "))
: (dob.obj.gsub!(/^/,"#{title_no}. ")) #fix stop later
end
if dob.ln !=no1 \
@@ -355,7 +355,7 @@ module SiSU_numbering
if defined? dob.ocn \
and dob.ocn
@segname=((dob.is=='heading'|| dob.is=='heading_insert') && dob.ln==4 && (defined? dob.name)) \
- ? (dob.name) \
+ ? (dob.name)
: @segname
tags["#{dob.ocn}"]={ segname: @segname }
ocn_html_seg[dob.ocn]=if dob.is =~/heading/