RDFLib/rdflib — Issue #5: XML serialisation should append a newline
Author: gjhiggins
Created: 2012-02-20 08:30:14+00:00
State: closed

nsla...@gmail.com, 2007-11-29T23:55:27.000Z

When you serialise a graph using pretty-xml the final newline (as required
by POSIX for all files) is missing.

Comment 1 by eike...@gmail.com
Fixed the issue but wrote the test case general enough to catch other guilty serializers.

FAIL: http://code.google.com/p/rdflib/issues/detail?id=5
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/eikeon/rdflib/core/test/test_graph.py", line 32, in testFinalNewline
self.assertEqual(len(failed), 0, "No final newline for formats: '%s'" % failed)
AssertionError: No final newline for formats: 'set(['n3', 'nt'])'

Comment 2 by eike...@gmail.com

Comment 3 by eik...@gmail.com

Comment 4 by gromgull
Fixed in r1757