Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make HTML5 the default

  • Loading branch information...
commit 170f7525ef38485988052133200af69faa295483 1 parent f697701
@duncannz duncannz authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 sparkup.py
View
8 sparkup.py
@@ -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 \
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.