aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v0/xml.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2007-10-07 14:09:03 +0100
committerRalph Amissah <ralph@amissah.com>2007-10-07 14:09:03 +0100
commit3804f096e2dd3c82ace274463df6b9b0767fbb60 (patch)
tree316e764d44a64ff5ac4cea661f72963127c0a4c8 /lib/sisu/v0/xml.rb
parentdal, fix shortcult for listing available generated output (without source); h... (diff)
cleaning, and make sure in xml &#160; rather than &nbsp; is used
Diffstat (limited to 'lib/sisu/v0/xml.rb')
-rw-r--r--lib/sisu/v0/xml.rb21
1 files changed, 0 insertions, 21 deletions
diff --git a/lib/sisu/v0/xml.rb b/lib/sisu/v0/xml.rb
index 2dd25491..b230ec9f 100644
--- a/lib/sisu/v0/xml.rb
+++ b/lib/sisu/v0/xml.rb
@@ -214,26 +214,6 @@ WOK
end
@@xml[:sc]=sc
end
- def xml_structure_ee(para='',lv='',ocn='',hname='') #embedded endnotes
- lv=lv.to_i
- n=lv - 1
- n3=lv + 2
- lv=nil if lv == 0
- embedded_endnotes(para)
- if para[@regx]
- paragraph="#{para[@regx,2]}"
- util=SiSU_text_utils::Wrap.new(paragraph,70)
- wrapped=util.line_wrap
- end
- @@xml[:body] << "#{@tab*0}<object>" << "\n" if para[@regx]
- @@xml[:body] << "#{@tab*1}<ocn>#{para[@regx,3]}</ocn>" << "\n" if para[@regx,3]
- @@xml[:body] << if lv; %{#{@tab*1}<text class="h#{lv}">#{wrapped}</text>\n} << "\n"
- else %{#{@tab*1}<text class="norm">#{wrapped}</text>\n} # main text, contents, body KEEP
- end
- #@@xml[:body] << "#{@tab*1}<text>#{wrapped}</text>\n" # main text, contents, body KEEP
- ##@@xml[:body] << "#{@tab*1}<text>#{para[@regx,2]}</text>\n" if para[@regx,2] # old unwrapped main text, contents, body KEEP
- @@xml[:body] << "#{@tab*0}</object>" << "\n" if para[@regx]
- end
def xml_structure(para='',lv='',ocn='',hname='',type='norm') #extracted endnotes
lv=lv.to_i
n=lv - 1
@@ -249,7 +229,6 @@ WOK
@@xml[:body] << if para[@regx,3]; %{#{@tab*0}<object id="#{para[@regx,3]}">} << "\n"
else "#{@tab*0}<object>" << "\n" if para[@regx]
end
- #@@xml[:body] << "#{@tab*1}<heading>#{lv}</heading>" << "\n" if lv
@@xml[:body] << "#{@tab*1}<ocn>#{para[@regx,3]}</ocn>" << "\n" if para[@regx,3]
@@xml[:body] << if lv; %{#{@tab*1}<text class="h#{lv}">\n#{@tab*2}#{wrapped}\n#{@tab*1}</text>\n} << "\n"
else %{#{@tab*1}<text class="#{type}">\n#{@tab*2}#{wrapped}\n#{@tab*1}</text>\n} # main text, contents, body KEEP