def _format_detailed(self, raw):
        doc = ''
        if 'header' in raw:
            doc += "{header}\n----\n".format(**raw)
        if raw['type'] == 'module':
            doc += self._format_detailed_module(raw)
        else:
            doc += self._format_detailed_actor(raw)
        if 'footer' in raw:
            doc += "\n----\n{footer}".format(**raw)
        return doc
dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/actorstore/store.py/DocumentationStore._format_detailed/original