Skip to content

Commit

Permalink
Properly open and close missing html tags (#67)
Browse files Browse the repository at this point in the history
* Updating the document to properly open and close missing html tags

* Cleaning up some line endings
  • Loading branch information
desrod authored Nov 5, 2022
1 parent 2c11274 commit 047d146
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions branca/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,16 +282,18 @@ class Figure(Element):
"""
_template = Template(
'<!DOCTYPE html>\n'
'<head>'
'<html>\n'
'<head>\n'
'{% if this.title %}<title>{{this.title}}</title>{% endif %}'
' {{this.header.render(**kwargs)}}\n'
'</head>\n'
'<body>'
'<body>\n'
' {{this.html.render(**kwargs)}}\n'
'</body>\n'
'<script>'
'<script>\n'
' {{this.script.render(**kwargs)}}\n'
'</script>\n'
'</html>\n'
)

def __init__(self, width='100%', height=None, ratio='60%', title=None, figsize=None):
Expand Down

0 comments on commit 047d146

Please sign in to comment.