diff options
Diffstat (limited to 'emitter.py')
-rw-r--r-- | emitter.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -507,9 +507,9 @@ class Emitter(object): self.indent = self.indents.pop() self.flow_level -= 1 self.write_indicator(u'}', False) - # if self.event.comment and self.event.comment[0]: - # # eol comment on flow sequence - # self.write_post_comment(self.event) + if self.event.comment and self.event.comment[0]: + # eol comment on empty mapping + self.write_post_comment(self.event) self.state = self.states.pop() else: if self.canonical or self.column > self.best_width: @@ -534,7 +534,7 @@ class Emitter(object): self.write_indent() self.write_indicator(u'}', False) if self.event.comment and self.event.comment[0]: - # eol comment on flow mapping + # eol comment on flow mapping, never reached on empty mappings self.write_post_comment(self.event) self.state = self.states.pop() else: |