for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
"""
SDoc
Copyright 2016 Set Based IT Consultancy
Licence MIT
# ----------------------------------------------------------------------------------------------------------------------
from sdoc.sdoc2 import node_store
from sdoc.sdoc2.formatter.html.HtmlFormatter import HtmlFormatter
class ItemizeHtmlFormatter(HtmlFormatter):
HtmlFormatter for generating HTML code for itemize.
# ------------------------------------------------------------------------------------------------------------------
def generate(self, node, file):
Generates the HTML code for an itemize node.
:param sdoc.sdoc2.node.ItemizeNode.ItemizeNode node: The itemize node.
:param file file: The output file.
file.write('<ul>')
HtmlFormatter.generate(self, node, file)
file.write('</ul>')
node_store.register_formatter('itemize', 'html', ItemizeHtmlFormatter)