HtmlFormatter.__init__()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 8
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 8
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nop 3
crap 1
1 1
from cleo.io.io import IO
2
3 1
from sdoc.sdoc2.formatter.Formatter import Formatter
4
5
6 1
class HtmlFormatter(Formatter):
7
    """
8
    Abstract parent class for all formatters for generating the output of nodes in HTML.
9
    """
10
11
    # ------------------------------------------------------------------------------------------------------------------
12 1
    def __init__(self, io: IO, parent: Formatter):
13
        """
14
        Object constructor.
15
16
        :param OutputStyle io: The IO object.
17
        :param Formatter parent: The formatter for the parent node.
18
        """
19 1
        Formatter.__init__(self, io, parent)
20
21
# ----------------------------------------------------------------------------------------------------------------------
22