diff options
author | Ralph Amissah <ralph@amissah.com> | 2011-07-26 20:40:58 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2011-07-26 20:40:58 -0400 |
commit | 50f12ee84e59d8f74f443c54ab3b11f50ac79346 (patch) | |
tree | c36f14b0044525b5e08924c9e25aa8e9f4392472 /lib/sisu/v3/db_import.rb | |
parent | debian/changelog (3.0.13-1) (diff) | |
parent | v2 v3: manpage html (man2html) (diff) |
Merge branch 'upstream' into debian/sid
Diffstat (limited to 'lib/sisu/v3/db_import.rb')
-rw-r--r-- | lib/sisu/v3/db_import.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/sisu/v3/db_import.rb b/lib/sisu/v3/db_import.rb index 541399a9..ac6f0104 100644 --- a/lib/sisu/v3/db_import.rb +++ b/lib/sisu/v3/db_import.rb @@ -393,8 +393,16 @@ module SiSU_DB_import SiSU_Format_Shared::CSS_Format.new(@md,data).html_table elsif data.is=='code' SiSU_Format_Shared::CSS_Format.new(@md,data).code - elsif defined? data.indent and data.indent =~/[1-9]/ + elsif defined? data.indent \ + and defined? data.hang \ + and data.indent =~/[1-9]/ \ + and data.indent == data.hang SiSU_Format_Shared::CSS_Format.new(@md,data).indent(data.indent) + elsif defined? data.indent \ + and defined? data.hang \ + and data.hang =~/[0-9]/ \ + and data.indent != data.hang + SiSU_Format_Shared::CSS_Format.new(@md,data).hang_indent(data.hang,data.indent) else SiSU_Format_Shared::CSS_Format.new(@md,data).norm end |