# HG changeset patch # User drewp@bigasterisk.com # Date 1580721035 28800 # Node ID b41247c7b08074374b01cade97b4ed8b257e0c8c # Parent 394c57fcb0bb26100f5feda67636a5a0529e1dec fix text/plain output Ignore-this: 484512f1c81139ef4788680e2ccef973 diff -r 394c57fcb0bb -r b41247c7b080 lib/patchablegraph/patchablegraph.py --- a/lib/patchablegraph/patchablegraph.py Mon Feb 03 00:51:26 2020 -0800 +++ b/lib/patchablegraph/patchablegraph.py Mon Feb 03 01:10:35 2020 -0800 @@ -47,9 +47,9 @@ if acceptHeader.startswith('text/html'): # browser; should arrange to pick live view req.set_header('Content-type', 'text/plain') - lines = graph.serialize(format='nquads') + lines = graph.serialize(None, format='nquads').splitlines() lines.sort() - req.write(''.join(lines)) + req.write(b'\n'.join(lines)) return req.set_header('Content-type', 'application/x-trig')