Skip to content

Commit

Permalink
Merge branch 'master' of github.com:pamoller/xmlformatter
Browse files Browse the repository at this point in the history
  • Loading branch information
pamoller committed Oct 27, 2024
2 parents 9e3e517 + fc1826b commit 3a545d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xmlformatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def enc_output(self, path, strg):
def format_string(self, xmldoc=""):
""" Format a XML document given by xmldoc """
token_list = Formatter.TokenList(self)
token_list.parser.Parse(xmldoc)
token_list.parser.Parse(xmldoc, True)
return self.enc_encode(str(token_list))

def format_file(self, file):
Expand Down

0 comments on commit 3a545d9

Please sign in to comment.