Removes to early content stripping (stripping is allready done when needed with ident:true), fixes #39220

This commit is contained in:
Luitzen van Gorkum 2017-02-07 15:14:52 +01:00
parent a4b169e0bd
commit e8a41d6341

View File

@ -1598,7 +1598,6 @@ def line(path, content, match=None, mode=None, location=None,
elif mode == 'ensure':
after = after and after.strip()
before = before and before.strip()
content = content and content.strip()
if before and after:
_assert_occurrence(body, before, 'before')