Kaydet (Commit) e8121231 authored tarafından Jeroen Nijhof's avatar Jeroen Nijhof Kaydeden (comit) Michael Meeks

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/9239Reviewed-by: 's avatarMichael Meeks <michael.meeks@collabora.com>
Tested-by: 's avatarMichael Meeks <michael.meeks@collabora.com>
üst af7df25b
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment