aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v3/xml_dom.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2011-07-26 20:26:52 -0400
committerRalph Amissah <ralph@amissah.com>2011-07-26 20:26:52 -0400
commit1abd2f99b807f9f33d1bd39c0a692e1455bf44f1 (patch)
tree6aad59f414085ff567418ca688162bd71fa7ebc9 /lib/sisu/v3/xml_dom.rb
parentv3: css, indent ... (diff)
v3: xhtml, xml sax & dom, indent (partially implemented) ...
Diffstat (limited to 'lib/sisu/v3/xml_dom.rb')
-rw-r--r--lib/sisu/v3/xml_dom.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/sisu/v3/xml_dom.rb b/lib/sisu/v3/xml_dom.rb
index 7a0d55f3..664bccdc 100644
--- a/lib/sisu/v3/xml_dom.rb
+++ b/lib/sisu/v3/xml_dom.rb
@@ -412,9 +412,15 @@ WOK
type="indent_bullet#{dob.indent.to_s}"
xml_markup(dob)
elsif dob.is=='para' \
- and dob.indent.to_s =~/[1-9]/
+ and dob.indent.to_s =~/[1-9]/ \
+ and dob.indent == dob.hang
type="indent#{dob.indent.to_s}"
xml_markup(dob)
+ elsif dob.is=='para' \
+ and dob.hang.to_s =~/[0-9]/ \
+ and dob.indent != dob.hang
+ type="hang#{dob.hang.to_s}_indent#{dob.indent.to_s}"
+ xml_markup(dob)
else
type='norm'
xml_markup(dob)