aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v3/po4a.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2011-03-01 20:41:28 -0500
committerRalph Amissah <ralph@amissah.com>2011-03-01 20:41:28 -0500
commit05a3fd233ec1ac4475bd797449d1284f6824c005 (patch)
treefdd93c057196640ec4907f58f66cf5bc00dfbdf6 /lib/sisu/v3/po4a.rb
parentv3: use rb1.9.2 "require_relative" syntax (diff)
v3: ruby 1.9 hash symbol syntax adopted
Diffstat (limited to 'lib/sisu/v3/po4a.rb')
-rw-r--r--lib/sisu/v3/po4a.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sisu/v3/po4a.rb b/lib/sisu/v3/po4a.rb
index 9ac98f00..ba892634 100644
--- a/lib/sisu/v3/po4a.rb
+++ b/lib/sisu/v3/po4a.rb
@@ -163,7 +163,7 @@ module SiSU_po4a
require_relative 'defaults' # defaults.rb
require_relative 'po4a_set' # po4a_set.rb
include SiSU_po4a_utils
- @@endnotes={ :para=>[],:end=>[] }
+ @@endnotes={ para: [], end: [] }
def initialize(fn,data_src,data_trn,md_src,md_trn,wrap_width)
@fn,@data_src,@data_trn,@md_src,@md_trn,@wrap_width=fn,data_src,data_trn,md_src,md_trn,wrap_width
@md=(md_trn.nil?) \
@@ -174,7 +174,7 @@ module SiSU_po4a
@tab="\t"
@@endnotes_=(@md.mod.inspect =~/--endnote/) ? true : false # --footnote
@br=(@md.mod.inspect =~/--dos/) ? "\r\n" : "\n" # --unix
- @pot={ :body=>[],:open=>[],:close=>[],:head=>[],:metadata=>[],:tail=>[] }
+ @pot={ body: [], open: [], close: [], head: [], metadata: [], tail: [] }
end
def songsheet
############## BUG @fn changes value
@@ -905,7 +905,7 @@ GSUB
content << pot[:body]
content << @@endnotes[:end] if @@endnotes_
Output.new(fn,content,@md).po4a
- @@endnotes={ :para=>[],:end=>[] }
+ @@endnotes={ para: [], end: [] }
end
end
class Output <Source