Passed
Branch master (0442a2)
by P.R.
02:00
created

UnknownHtmlDecorator.generate()   A

Complexity

Conditions 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 8
rs 9.4285
cc 1
1
"""
2
SDoc
3
4
Copyright 2016 Set Based IT Consultancy
5
6
Licence MIT
7
"""
8
# ---------------------------------------------------------------------------------------------------------------------
9
from sdoc.helper.Html import Html
10
from sdoc.sdoc2 import node_store
11
from sdoc.sdoc2.decorator.html.HtmlDecorator import HtmlDecorator
12
13
class UnknownHtmlDecorator(HtmlDecorator):
14
    """
15
    HtmlDecorator for generating HTML code for unknown nodes.
16
    """
17
    # ------------------------------------------------------------------------------------------------------------------
18
    def generate(self, node, file):
19
        """
20
        Generates the HTML code for a unknown node.
21
22
        :param sdoc.sdoc2.node.UnknownNode.UnknownNode node: The unknown node.
23
        :param file file: The output file.
24
        """
25
        pass
26
27
# ----------------------------------------------------------------------------------------------------------------------
28
node_store.register_format_decorator('unknown', 'html', UnknownHtmlDecorator)