Path 1: 22 calls (1.0)

Title (12) Table (10)

'NC' (56) '0' (26) '1' (10) '0.00' (9) 'difference' (8) 'type' (6) 'number' (6) 'previous' (6) 'Report' (2) 'Statistics by type' (2)

1def compute_content(self, layout: BaseLayout) -> Iterator[str]:
2        """Trick to compute the formatting of children layout before actually
3        writing it.
4
5        return an iterator on strings (one for each child element)
6        """
7        # Patch the underlying output stream with a fresh-generated stream,
8        # which is used to store a temporary representation of a child
9        # node.
10        out = self.out
11        try:
12            for child in layout.children:
13                stream = StringIO()
14                self.out = stream
15                child.accept(self)
16                yield stream.getvalue()
17        finally:
18            self.out = out