[Libreoffice-commits] core.git: bin/find-german-comments

Jeroen Nijhof jeroen at nijhof.co.uk
Sat May 3 03:42:43 PDT 2014


 bin/find-german-comments |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e81212315b5fe22e1005d41149a0ea1a557bf412
Author: Jeroen Nijhof <jeroen at nijhof.co.uk>
Date:   Fri May 2 20:38:41 2014 +0200

    find-german-comments -l crashed for a too long path name
    
    In calculating how many tabs to use for the display,
    when the path was more than 40 characters (like for
    dbaccess/source/ui/relationdesign/RelationTableView.cxx)
    it returned '1, 0' for the number of tabs --
    and python didn't like that. Return 1 instead.
    
    Change-Id: If370ffe03b4aff67ca59094dd38863986ca39519
    Reviewed-on: https://gerrit.libreoffice.org/9239
    Reviewed-by: Michael Meeks <michael.meeks at collabora.com>
    Tested-by: Michael Meeks <michael.meeks at collabora.com>

diff --git a/bin/find-german-comments b/bin/find-german-comments
index 7c5f718..155d9d6 100755
--- a/bin/find-german-comments
+++ b/bin/find-german-comments
@@ -155,7 +155,7 @@ class Parser:
         def tab_calc (string):
             START = 40 #Default of 10 tabs
             if len(string) >= START:
-                return 1, 0
+                return 1
             diff = START - len(string)
             if diff % 4 is not 0:
                 padding = 1


More information about the Libreoffice-commits mailing list