Merge pull request #6083 from sibidharan/patch-1

Fix #6068
This commit is contained in:
Ameya Shenoy 2018-09-12 10:53:27 +05:30 committed by GitHub
commit ea40ca6bca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -186,7 +186,7 @@ class DocType(Document):
for option in field.options.split("\n"):
new_options += option.strip()
new_options += "\n"
new_options.rstrip("\n")
new_options = new_options.rstrip("\n")
field.options = new_options
def validate_series(self, autoname=None, name=None):