Fix info breaking in some cases #8

Merged
Lonami merged 2 commits from kate/uniborg:master into master 2019-05-19 21:10:02 +00:00

This makes

print(yaml_format(
    {
        '_': 'Thing',
        'other_thing': {
            '_': 'OtherThing',
            'more_thing': {
                '_': 'MoreThing',
                'test': 'test',
                'vest': 'vest',
            }
        }
    }
))

correctly output

Thing: other_thing: OtherThing: more_thing: MoreThing:
  test: 'test'
  vest: 'vest'

instead of the currently incorrect

Thing: other_thing: OtherThing: more_thing: MoreThing:
      test: 'test'
      vest: 'vest'

As well as fixing the trailing whitespace problems (no clue why I appended whitespace at the end of lists and dicts).

This makes ```python print(yaml_format( { '_': 'Thing', 'other_thing': { '_': 'OtherThing', 'more_thing': { '_': 'MoreThing', 'test': 'test', 'vest': 'vest', } } } )) ``` correctly output ``` Thing: other_thing: OtherThing: more_thing: MoreThing: test: 'test' vest: 'vest' ``` instead of the currently incorrect ``` Thing: other_thing: OtherThing: more_thing: MoreThing: test: 'test' vest: 'vest' ``` As well as fixing the trailing whitespace problems (no clue why I appended whitespace at the end of lists and dicts).
Lonami closed this pull request 2019-05-19 21:10:02 +00:00

Thanks @kate, very cool.

Thanks @kate, very cool.
This repo is archived. You cannot comment on pull requests.
No reviewers
No Label
No Milestone
No Assignees
2 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: uniborg/uniborg#8
There is no content yet.