1. Steve Losh
  2. snippy

Commits

Steve Losh  committed 56cf2f5

Fix some problems the tests detected.

  • Participants
  • Parent commits 0a1b99b
  • Branches default

Comments (0)

Files changed (1)

File snippy.py

View file
     elif len(postfix) >= length:
         return postfix[:length]
     else:
-        return (text[:length-len(postfix)].strip() + postfix)[:length]
+        return text[:length-len(postfix)] + postfix