do not ask rexml to prettyprint the XML document
authorGuillaume Cottenceau <gcottenc@gmail.com>
Wed, 24 Jun 2009 12:16:58 +0000 (14:16 +0200)
committerGuillaume Cottenceau <gcottenc@gmail.com>
Wed, 24 Jun 2009 12:16:58 +0000 (14:16 +0200)
bin/album2booh
bin/booh
bin/booh-backend
bin/booh-classifier
bin/webalbum2booh

index 0da1ef1..211694c 100755 (executable)
@@ -166,5 +166,5 @@ handle_options
 walk_source_dir
 
 ios = File.open("#{$conffile}.merged", "w")
-$xmldoc.write(ios, 0)
+$xmldoc.write(ios)
 ios.close
index 9fff6a8..2de6d3e 100644 (file)
--- a/bin/booh
+++ b/bin/booh
@@ -205,7 +205,7 @@ def write_config
         end
     }
     ios = File.open($config_file, "w")
-    xmldoc.write(ios, 0)
+    xmldoc.write(ios)
     ios.close
 
     $tempfiles.each { |f|
@@ -1850,7 +1850,7 @@ def save_current_file
         begin
             begin
                 ios = File.open($filename, "w")
-                $xmldoc.write(ios, 0)
+                $xmldoc.write(ios)
                 ios.close
             rescue Iconv::IllegalSequence
                 #- user might have entered text which cannot be encoded in his default encoding. retry in UTF-8.
@@ -1859,7 +1859,7 @@ def save_current_file
                 end
                 $xmldoc.xml_decl.encoding = 'UTF-8'
                 ios = File.open($filename, "w")
-                $xmldoc.write(ios, 0)
+                $xmldoc.write(ios)
                 ios.close
             end
             return true
@@ -1932,7 +1932,7 @@ def ask_save_modifications(msg1, msg2, *options)
                         $xmldoc = REXML::Document.new(File.new($orig_filename))
                         mark_document_as_dirty
                         ios = File.open($orig_filename, "w")
-                        $xmldoc.write(ios, 0)
+                        $xmldoc.write(ios)
                         ios.close
                     rescue Exception
                         puts "exception: #{$!}"
index 42e6300..3f5d737 100755 (executable)
@@ -1333,7 +1333,7 @@ def walk_source_dir
     #- write down to disk config if necessary
     if $config_writeto
         ios = File.open($config_writeto, "w")
-        $xmldoc.write(ios, 0)
+        $xmldoc.write(ios)
         ios.close
     end
 
index 7c34307..321cd58 100755 (executable)
@@ -185,7 +185,7 @@ def write_config
             end
         end
     }
-    $xmldoc.write(ios, 0)
+    $xmldoc.write(ios)
     ios.close
 end
 
index 75e33a4..61daaec 100755 (executable)
@@ -159,5 +159,5 @@ handle_options
 walk_source_dir
 
 ios = File.open("#{$conffile}.merged", "w")
-$xmldoc.write(ios, 0)
+$xmldoc.write(ios)
 ios.close