fix improper indenting
authorgc <gc>
Sat, 16 Feb 2008 22:14:50 +0000 (22:14 +0000)
committergc <gc>
Sat, 16 Feb 2008 22:14:50 +0000 (22:14 +0000)
bin/booh

index d48d6009c561e5cfd389223fb0b48df7e474b587..463739f9524de345ac6766ce8569480895b7f0c0 100755 (executable)
--- a/bin/booh
+++ b/bin/booh
@@ -1287,44 +1287,44 @@ def add_thumbnail(autotable, filename, type, thumbnail_img, caption)
         end
     }
 
-     gammacorrect_and_cleanup_real = proc { |values|
-         perform_change_gammacorrect_and_cleanup = Proc.new { |val|
-             cleanup_all_thumbnails.call
-             change_gammacorrect($xmldir.elements["*[@filename='#{filename}']"], '', val)
-             recalc_gammacorrect(val, fullpath, thumbnail_img, img,
-                                 $xmldir.elements["*[@filename='#{filename}']"], '', $default_thumbnails[:x], $default_thumbnails[:y], '')
-         }
-         perform_change_gammacorrect_and_cleanup.call(values[:new])
-         save_undo(_("gamma correction"),
-                   Proc.new {
-                       perform_change_gammacorrect_and_cleanup.call(values[:old])
-                       textview.grab_focus
-                       autoscroll_if_needed($autotable_sw, img, textview)
-                       $notebook.set_page(1)
-                       Proc.new {
-                           perform_change_gammacorrect_and_cleanup.call(values[:new])
-                           textview.grab_focus
-                           autoscroll_if_needed($autotable_sw, img, textview)
-                           $notebook.set_page(1)
-                       }
-                   })
-     }
-     gammacorrect_and_cleanup = Proc.new {
-         if values = ask_gammacorrect(fullpath, thumbnail_img, img,
-                                      $xmldir.elements["*[@filename='#{filename}']"], '', $default_thumbnails[:x], $default_thumbnails[:y], '')
-             gammacorrect_and_cleanup_real.call(values)
-         end
-     }
-
+    gammacorrect_and_cleanup_real = proc { |values|
+        perform_change_gammacorrect_and_cleanup = Proc.new { |val|
+            cleanup_all_thumbnails.call
+            change_gammacorrect($xmldir.elements["*[@filename='#{filename}']"], '', val)
+            recalc_gammacorrect(val, fullpath, thumbnail_img, img,
+                                $xmldir.elements["*[@filename='#{filename}']"], '', $default_thumbnails[:x], $default_thumbnails[:y], '')
+        }
+        perform_change_gammacorrect_and_cleanup.call(values[:new])
+        
+        save_undo(_("gamma correction"),
+                  Proc.new {
+                      perform_change_gammacorrect_and_cleanup.call(values[:old])
+                      textview.grab_focus
+                      autoscroll_if_needed($autotable_sw, img, textview)
+                      $notebook.set_page(1)
+                      Proc.new {
+                          perform_change_gammacorrect_and_cleanup.call(values[:new])
+                          textview.grab_focus
+                          autoscroll_if_needed($autotable_sw, img, textview)
+                          $notebook.set_page(1)
+                      }
+                  })
+    }
+    
+    gammacorrect_and_cleanup = Proc.new {
+        if values = ask_gammacorrect(fullpath, thumbnail_img, img,
+                                     $xmldir.elements["*[@filename='#{filename}']"], '', $default_thumbnails[:x], $default_thumbnails[:y], '')
+            gammacorrect_and_cleanup_real.call(values)
+        end
+    }
+    
     enhance_and_cleanup = proc {
         perform_enhance_and_cleanup = proc {
             cleanup_all_thumbnails.call
             enhance($xmldir.elements["*[@filename='#{filename}']"], '')
             my_gen_real_thumbnail.call
         }
-
+        
         cleanup_all_thumbnails.call
         perform_enhance_and_cleanup.call