Commit ed51dde2 authored by Robert Loehning's avatar Robert Loehning Committed by Robert Löhning
Browse files

Squish: Fixed and simplified function

Change-Id: I5177202b366f8373dda05cbe8f4b1ae2e529cc5c
Reviewed-by: default avatarBill King <>
Reviewed-by: default avatarChristian Stenger <>
parent 2c95b130
......@@ -78,14 +78,7 @@ def testReIndent():
% (originalText, textAfterReIndent))
def shrinkText(txt, lines=10):
count = 0
index = -1
while count<lines:
index=originalText.find("\n", index+1)
if index==-1:
count += 1
return originalText[0:index]
return "".join(txt.splitlines(True)[0:lines])
def cleanup():
global workingDir
Supports Markdown
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