Disregard the last 3 dots that mark the end of the YAML document.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2017-08-10 01:23:27 -04:00
parent bb663aa71a
commit bda44212b1
2 changed files with 8 additions and 1 deletions

View File

@@ -19,6 +19,7 @@
- Add support for rendering workflows.
- Add support for unbinding sub menus.
- Fix mailing profile test view.
- Disregard the last 3 dots that mark the end of the YAML document.
2.6.4 (2017-07-26)
==================

View File

@@ -81,7 +81,13 @@ class Setting(object):
if isinstance(value, Promise):
value = force_text(value)
return yaml.safe_dump(value, allow_unicode=True)
result = yaml.safe_dump(value, allow_unicode=True)
# safe_dump returns bytestrings
# Disregard the last 3 dots that mark the end of the YAML document
if result.endswith(b'...\n'):
result = result[:-4]
return result
@classmethod
def get(cls, global_name):