[ocrfeeder] Fix different indentation usage in some if blocks



commit fd960c7f900df01315c766e936ef55b51cfc2745
Author: Joaquim Rocha <jrocha igalia com>
Date:   Mon Nov 8 08:23:35 2010 +0100

    Fix different indentation usage in some if blocks

 src/ocrfeeder/feeder/layoutAnalysis.py |    4 ++--
 src/ocrfeeder/feeder/ocrEngines.py     |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/ocrfeeder/feeder/layoutAnalysis.py b/src/ocrfeeder/feeder/layoutAnalysis.py
index dfea751..344d923 100644
--- a/src/ocrfeeder/feeder/layoutAnalysis.py
+++ b/src/ocrfeeder/feeder/layoutAnalysis.py
@@ -104,7 +104,7 @@ class Block:
         if self.extra_charge == TOP or self.extra_charge == BOTH:
             begin -= 1
         elif self.extra_charge == BOTTOM or self.extra_charge == BOTH:
-                end +=1
+            end +=1
         return (begin in verticalRange[:-1]) or (end in verticalRange[1])
 
     def __inHorizontalRange(self, horizontalRange):
@@ -117,7 +117,7 @@ class Block:
         vertical_range = self.__getVerticalRange()
         if block.__inHorizontalRange(self.__getHorizontalRange()):
             if (block.start_line in vertical_range) or (block.finish_line in vertical_range):
-                    return True
+                return True
             if self.extra_charge >= 1:
                 if self.finish_line + 1 == block.start_line:
                     return True
diff --git a/src/ocrfeeder/feeder/ocrEngines.py b/src/ocrfeeder/feeder/ocrEngines.py
index c6c556f..0a7941c 100644
--- a/src/ocrfeeder/feeder/ocrEngines.py
+++ b/src/ocrfeeder/feeder/ocrEngines.py
@@ -149,7 +149,7 @@ class OcrEnginesManager:
             except WrongSettingsForEngine, we:
                 lib.debug("Cannot load engine at %s: %s" %( xml_file, str(we)))
         if not len(self.ocr_engines):
-                lib.debug("Warning: no engines found!")
+            lib.debug("Warning: no engines found!")
 
     def getEngineFromXml(self, xml_file_name):
         document = ET.parse(xml_file_name)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]