Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
phil65 committed Nov 14, 2023
1 parent d1a61b0 commit cb968da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions mknodes/basenodes/mkiframe/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

logger = log.get_logger(__name__)

HTML = '<iframe frameborder="0" width="{width}" height="{height}" src="{url}"></iframe>'
HTML = '<iframe width="{width}" height="{height}" src="{url}"></iframe>'


class MkIFrame(mknode.MkNode):
Expand All @@ -32,8 +32,6 @@ def __init__(
height: height of frame in pixels
kwargs: Keyword arguments passed to parent
"""
# if as_links:
# url = [link.Link(i) for i in url]
super().__init__(**kwargs)
self.url = url
self.width = width
Expand Down
2 changes: 1 addition & 1 deletion mknodes/basenodes/mkiframe/metadata.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ jinja = """

[output.html]
template = """
<iframe frameborder="0" width="{{ node.width }}" height="{{ node.height }}" src="{{ node.url }}"></iframe>
<iframe width="{{ node.width }}" height="{{ node.height }}" src="{{ node.url }}"></iframe>
"""

0 comments on commit cb968da

Please sign in to comment.