diff options
author | Jeroen Nijhof <jeroen@nijhof.co.uk> | 2014-05-02 20:38:41 +0200 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2014-05-03 10:42:16 +0000 |
commit | e81212315b5fe22e1005d41149a0ea1a557bf412 (patch) | |
tree | 493ed3a2a2f0466a974770a77404409f291bd832 /bin | |
parent | af7df25bcc8bc95462e2b3bf8c003d035111a479 (diff) |
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@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/find-german-comments | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/find-german-comments b/bin/find-german-comments index 7c5f718bd1f1..155d9d635f51 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 |