diff --git a/docphp.py b/docphp.py index db3b156..1addc6e 100644 --- a/docphp.py +++ b/docphp.py @@ -554,6 +554,8 @@ def shall_border(self, tag, attrs): return False def get_tag_text(self, tag, attrs, is_startend=False): + if type(attrs) is list: + attrs = dict(attrs) return '<' + (tag + ' ' + ' '.join(map(lambda m: m + '="' + re.sub('(?' if is_startend else '>')