diff --git a/scour/scour.py b/scour/scour.py index 0112ad1..1f14181 100644 --- a/scour/scour.py +++ b/scour/scour.py @@ -3090,7 +3090,10 @@ def scourString(in_string, options=None): # return the string with its XML prolog and surrounding comments if options.strip_xml_prolog == False: - total_output = '\n' + total_output = '\n' else: total_output = "" diff --git a/testscour.py b/testscour.py index af9ce96..ee2eef7 100755 --- a/testscour.py +++ b/testscour.py @@ -1031,7 +1031,7 @@ class DoNotPrettyPrintWhenWhitespacePreserved(unittest.TestCase): def runTest(self): with open('unittests/whitespace-important.svg') as f: s = scour.scourString(f.read()).splitlines() - c = ''' + c = ''' This is some messed-up markup @@ -1044,7 +1044,7 @@ class DoNotPrettyPrintWhenNestedWhitespacePreserved(unittest.TestCase): def runTest(self): with open('unittests/whitespace-nested.svg') as f: s = scour.scourString(f.read()).splitlines() - c = ''' + c = ''' Use bold text