diff options
author | Anthon van der Neut <anthon@mnt.org> | 2018-09-19 21:27:53 +0200 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2018-09-19 21:27:53 +0200 |
commit | 1ddf55276fa7884e5dc82274659e67e88b5500dd (patch) | |
tree | 139241bb80daefdc7dc69c77677cbdd01716afb8 | |
parent | ae9ec4ee6738d0ed07d60d67e95ebbb09484313d (diff) | |
download | ruamel.yaml-1ddf55276fa7884e5dc82274659e67e88b5500dd.tar.gz |
fix for issue #235 extra indent on non-root literal strings on rt0.15.67
Thanks for reporting and the PR
*When this change indeed resolves your problem, please **Close** this issue*.
*(You can do so using the WorkFlow pull-down (close to the top right of this page))*
-rw-r--r-- | CHANGES | 5 | ||||
-rw-r--r-- | README.rst | 9 | ||||
-rw-r--r-- | __init__.py | 4 | ||||
-rw-r--r-- | _doc/_static/pypi.svg | 2 | ||||
-rw-r--r-- | _test/test_literal.py | 1 |
5 files changed, 16 insertions, 5 deletions
@@ -1,3 +1,8 @@ +[0, 15, 67]: 2018-09-19 + - fix issue with extra space inserted with non-root literal strings + (Issue reported and PR with fix provided by + `Naomi Seyfer <https://bitbucket.org/sixolet/>`__.) + [0, 15, 66]: 2018-09-07 - fix issue with fold indicating characters inserted in safe_load-ed folded strings (reported by `Maximilian Hils <https://bitbucket.org/mhils/>`__). @@ -4,8 +4,8 @@ ruamel.yaml ``ruamel.yaml`` is a YAML 1.2 loader/dumper package for Python. -:version: 0.15.66 -:updated: 2018-09-07 +:version: 0.15.67 +:updated: 2018-09-19 :documentation: http://yaml.readthedocs.io :repository: https://bitbucket.org/ruamel/ :pypi: https://pypi.org/project/ruamel.yaml/ @@ -54,6 +54,11 @@ ChangeLog .. should insert NEXT: at the beginning of line for next key (with empty line) +0.15.67 (2018-09-19): + - fix issue with extra space inserted with non-root literal strings + (Issue reported and PR with fix provided by + `Naomi Seyfer <https://bitbucket.org/sixolet/>`__.) + 0.15.66 (2018-09-07): - fix issue with fold indicating characters inserted in safe_load-ed folded strings (reported by `Maximilian Hils <https://bitbucket.org/mhils/>`__). diff --git a/__init__.py b/__init__.py index 9203c12..a2ae153 100644 --- a/__init__.py +++ b/__init__.py @@ -7,8 +7,8 @@ if False: # MYPY _package_data = dict( full_package_name='ruamel.yaml', - version_info=(0, 15, 66), - __version__='0.15.66', + version_info=(0, 15, 67), + __version__='0.15.67', author='Anthon van der Neut', author_email='a.van.der.neut@ruamel.eu', description='ruamel.yaml is a YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order', # NOQA diff --git a/_doc/_static/pypi.svg b/_doc/_static/pypi.svg index 5ca4e23..5d93fbb 100644 --- a/_doc/_static/pypi.svg +++ b/_doc/_static/pypi.svg @@ -1 +1 @@ -<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="86" height="20"><linearGradient id="b" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><clipPath id="a"><rect width="86" height="20" rx="3" fill="#fff"/></clipPath><g clip-path="url(#a)"><path fill="#555" d="M0 0h33v20H0z"/><path fill="#007ec6" d="M33 0h53v20H33z"/><path fill="url(#b)" d="M0 0h86v20H0z"/></g><g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="110"> <text x="175" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="230">pypi</text><text x="175" y="140" transform="scale(.1)" textLength="230">pypi</text><text x="585" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="430">0.15.66</text><text x="585" y="140" transform="scale(.1)" textLength="430">0.15.66</text></g> </svg> +<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="86" height="20"><linearGradient id="b" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><clipPath id="a"><rect width="86" height="20" rx="3" fill="#fff"/></clipPath><g clip-path="url(#a)"><path fill="#555" d="M0 0h33v20H0z"/><path fill="#007ec6" d="M33 0h53v20H33z"/><path fill="url(#b)" d="M0 0h86v20H0z"/></g><g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="110"> <text x="175" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="230">pypi</text><text x="175" y="140" transform="scale(.1)" textLength="230">pypi</text><text x="585" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="430">0.15.67</text><text x="585" y="140" transform="scale(.1)" textLength="430">0.15.67</text></g> </svg> diff --git a/_test/test_literal.py b/_test/test_literal.py index a9b34e1..20eb8e9 100644 --- a/_test/test_literal.py +++ b/_test/test_literal.py @@ -230,6 +230,7 @@ class TestNoIndent: print(type(d), repr(d)) yaml.round_trip(inp) + class Test_RoundTripLiteral: def test_rt_root_literal_scalar_no_indent(self): yaml = YAML() |