aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v5/txt_asciidoc.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/v5/txt_asciidoc.rb')
-rw-r--r--lib/sisu/v5/txt_asciidoc.rb29
1 files changed, 15 insertions, 14 deletions
diff --git a/lib/sisu/v5/txt_asciidoc.rb b/lib/sisu/v5/txt_asciidoc.rb
index 114252b1..07b8832f 100644
--- a/lib/sisu/v5/txt_asciidoc.rb
+++ b/lib/sisu/v5/txt_asciidoc.rb
@@ -8,7 +8,8 @@
* Author: Ralph Amissah
* Copyright: (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
- 2007, 2008, 2009, 2010, 2011, 2012, 2013 Ralph Amissah, All Rights Reserved.
+ 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 Ralph Amissah,
+ All Rights Reserved.
* License: GPL 3 or later:
@@ -59,7 +60,7 @@
** Description: plaintext (smarttext) generation, asciidoc
=end
-module SiSU_Txt_asciiDoc
+module SiSU_Txt_AsciiDoc
require_relative 'ao' # ao.rb
require_relative 'sysenv' # sysenv.rb
include SiSU_Env
@@ -89,8 +90,8 @@ module SiSU_Txt_asciiDoc
(@opt.act[:verbose][:set]==:on \
|| @opt.act[:verbose_plus][:set]==:on \
|| @opt.act[:maintenance][:set]==:on) \
- ? SiSU_Screen::Ansi.new(@opt.act[:color_state][:set],'asciiDoc (plaintext utf-8)',tool).green_hi_blue
- : SiSU_Screen::Ansi.new(@opt.act[:color_state][:set],'asciiDoc (plaintext utf-8)',tool).green_title_hi
+ ? SiSU_Screen::Ansi.new(@opt.act[:color_state][:set],'AsciiDoc (plaintext utf-8)',tool).green_hi_blue
+ : SiSU_Screen::Ansi.new(@opt.act[:color_state][:set],'AsciiDoc (plaintext utf-8)',tool).green_title_hi
if (@opt.act[:verbose_plus][:set]==:on \
|| @opt.act[:maintenance][:set]==:on)
SiSU_Screen::Ansi.new(@opt.act[:color_state][:set],@opt.fns,"#{md.file.output_path.asciidoc.dir}/#{md.file.base_filename.asciidoc}").flow
@@ -106,7 +107,7 @@ module SiSU_Txt_asciiDoc
else 78
end
#wrap_width=(defined? md.make.plaintext_wrap) ? md.make.plaintext_wrap : 78
- SiSU_Txt_asciiDoc::Source::Scroll.new(md,ao_array,wrap_width).songsheet
+ SiSU_Txt_AsciiDoc::Source::Scroll.new(md,ao_array,wrap_width).songsheet
rescue
SiSU_Errors::Rescued.new($!,$@,@opt.cmd,@opt.fns).location do
__LINE__.to_s + ':' + __FILE__
@@ -126,9 +127,9 @@ module SiSU_Txt_asciiDoc
@brace_url=SiSU_Viz::Defaults.new.url_decoration
@tab="\t"
@@endnotes_=case md.opt.mod.inspect
- when /--footnote/; false
- when /--endnote/; true
- else true
+ when /--footnote/ then false
+ when /--endnote/ then true
+ else true
end
@plaintext={ body: [], open: [], close: [], head: [], metadata: [], tail: [] }
end
@@ -220,6 +221,9 @@ WOK
def decorate
def heading
def inline
+ def l0
+ '='
+ end
def l1
'=='
end
@@ -235,12 +239,12 @@ WOK
def l5
'' #'======' #logical
end
- def l6
- '' #'=======' #logical
- end
self
end
def underscore
+ def l0
+ '='
+ end
def l1
'-'
end
@@ -256,9 +260,6 @@ WOK
def l5
'' #'.' #proposed
end
- def l6
- '' #'.' #proposed
- end
self
end
self