diff options
author | Ralph Amissah <ralph@amissah.com> | 2011-07-26 20:26:52 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2011-07-26 20:26:52 -0400 |
commit | 1abd2f99b807f9f33d1bd39c0a692e1455bf44f1 (patch) | |
tree | 6aad59f414085ff567418ca688162bd71fa7ebc9 /lib/sisu/v3/xml.rb | |
parent | v3: css, indent ... (diff) |
v3: xhtml, xml sax & dom, indent (partially implemented) ...
Diffstat (limited to 'lib/sisu/v3/xml.rb')
-rw-r--r-- | lib/sisu/v3/xml.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/sisu/v3/xml.rb b/lib/sisu/v3/xml.rb index f2751da1..73e9345c 100644 --- a/lib/sisu/v3/xml.rb +++ b/lib/sisu/v3/xml.rb @@ -346,8 +346,13 @@ WOK and dob.bullet_==true xml_structure(dob,"indent_bullet#{dob.indent}") elsif dob.is =~ /^para/ \ - and dob.indent.to_s =~/[1-9]/ + and dob.indent.to_s =~/[1-9]/ \ + and dob.indent == dob.hang xml_structure(dob,"indent#{dob.indent}") + elsif dob.is =~ /^para/ \ + and dob.hang.to_s =~/[0-9]/ \ + and dob.indent != dob.hang + xml_structure(dob,"hang#{dob.hang.to_s}_indent#{dob.indent.to_s}") else xml_structure(dob) end end |