diff --git a/strictyaml/representation.py b/strictyaml/representation.py index 3545ece..daf8b5a 100644 --- a/strictyaml/representation.py +++ b/strictyaml/representation.py @@ -247,11 +247,13 @@ def __hash__(self): def __len__(self): return len(self._value) - def as_yaml(self): + def as_yaml(self, indent=None, width=None, block_seq_indent=None): """ Render the YAML node and subnodes as string. """ - dumped = dump(self.as_marked_up(), Dumper=StrictYAMLDumper, allow_unicode=True) + dumped = dump(self.as_marked_up(), Dumper=StrictYAMLDumper, + allow_unicode=True, indent=indent, + width=width, block_seq_indent=block_seq_indent) return dumped if sys.version_info[0] == 3 else dumped.decode("utf8") def items(self):