Skip to content

Commit

Permalink
Make HTML5 the default
Browse files Browse the repository at this point in the history
  • Loading branch information
duncannz committed Oct 1, 2013
1 parent f697701 commit 170f752
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sparkup.py
Original file line number Diff line number Diff line change
Expand Up @@ -633,10 +633,10 @@ def render(self):

# Short, self-closing tags (<br> or <br /> depending on configuration)
elif self.name in short_tags:
if self.parser.options.has('html5-self-closing'):
output = "%s<%s>\n" % (indent, self.get_default_tag())
else:
if self.parser.options.has('no-html5-self-closing'):
output = "%s<%s />\n" % (indent, self.get_default_tag())
else:
output = "%s<%s>\n" % (indent, self.get_default_tag())

# Tags with text, possibly
elif self.name != '' or \
Expand Down Expand Up @@ -1092,7 +1092,7 @@ def has(self, attr):
('', 'no-last-newline', 'Skip the trailing newline'),
('', 'start-guide-format=', 'To be documented'), # << TODO
('', 'end-guide-format=', 'To be documented'), # << TODO
('', 'html5-self-closing', 'Use HTML5 <br> instead of HTML4 <br />'),
('', 'no-html5-self-closing', 'Use HTML4 <br /> instead of HTML5 <br>'),
]

# Property: router
Expand Down

0 comments on commit 170f752

Please sign in to comment.