markup: dump() can now accept variable number of things to dump
@@ -68,11 +68,12 @@ def _dump(markup, header, file):
renderers.terminal.render(markup, file=file)
-def dump(obj, file=None, trim=True, marker=None, **kwargs):
+def dump(*objs, file=None, trim=True, marker=None, **kwargs):
for kw in kwargs:
if kw[0] != '_':
raise TypeError(f'unknown keyword argument {kw!r}')
+ for obj in objs:
if marker:
markup = elements.doc.Marker(text=marker)
renderers.terminal.render(markup, file=file, ensure_newline=False)
