aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v3/db_import.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2011-07-26 20:32:10 -0400
committerRalph Amissah <ralph@amissah.com>2011-07-26 20:32:10 -0400
commite3330f16f31ccc9cd62d5d1f15e76cec4e45485d (patch)
tree0b34c877c9dd53f04f8a227cfa75ff5cd3f147aa /lib/sisu/v3/db_import.rb
parentv3: texpdf, indent ... (diff)
v3: sql (pg, sqlite), indent ...
Diffstat (limited to 'lib/sisu/v3/db_import.rb')
-rw-r--r--lib/sisu/v3/db_import.rb10
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