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 0da1ef117f6b2c6ec9041ff12c0b65afc3cc018d..211694c4ec6671e86bad85887f00bc86836571ce 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 9fff6a8ec896e20f45faed3b95a444f42ca35dde..2de6d3ea4ebc125e6cd662914a07cb9dca938281 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 42e6300f6e14a09e6398930cd14d78384d791e6d..3f5d7374a524c9f3dd16db9f65f896e483950d18 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 7c3430789bef331ddb677ee87f7345e92dfb4045..321cd58c5428957ac6244bffa19a532e19a953f5 100755 (executable)
@@ -185,7 +185,7 @@ def write_config
             end
         end
     }
-    $xmldoc.write(ios, 0)
+    $xmldoc.write(ios)
     ios.close
 end
 
index 75e33a469bd28f241851f9b482b4de5f3c09477d..61daaec6565adfbbcce4aa2e764081b258c917e7 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