aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v3/plaintext.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/plaintext.rb
parentv3: use rb1.9.2 "require_relative" syntax (diff)
v3: ruby 1.9 hash symbol syntax adopted
Diffstat (limited to 'lib/sisu/v3/plaintext.rb')
-rw-r--r--lib/sisu/v3/plaintext.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sisu/v3/plaintext.rb b/lib/sisu/v3/plaintext.rb
index 8ed1c3cd..8ff64b30 100644
--- a/lib/sisu/v3/plaintext.rb
+++ b/lib/sisu/v3/plaintext.rb
@@ -112,7 +112,7 @@ module SiSU_Plaintext
require_relative 'defaults' # defaults.rb
require_relative 'shared_txt' # shared_txt.rb
include SiSU_text_utils
- @@endnotes={ :para=>[],:end=>[] }
+ @@endnotes={ para: [], end: [] }
def initialize(data,md,wrap_width)
@data,@md,@wrap_width=data,md,wrap_width
@env=SiSU_Env::Info_env.new(@md.fns)
@@ -128,7 +128,7 @@ module SiSU_Plaintext
when /--unix/; "\n"
else "\n"
end
- @plaintext={ :body=>[],:open=>[],:close=>[],:head=>[],:metadata=>[],:tail=>[] }
+ @plaintext={ body: [], open: [], close: [], head: [], metadata: [], tail: [] }
end
def songsheet
plaintext=markup(@data)
@@ -385,7 +385,7 @@ WOK
content << "#{@br}#{divider*@wrap_width}#{@br}" if @md.stmp =~/\w+/ #not used?
content << plaintext[:tail]
Output.new(content,@md).plaintext
- @@endnotes={ :para=>[],:end=>[] }
+ @@endnotes={ para: [], end: [] }
end
end
class Output <Source