Skip to content

Commit

Permalink
img has no /> anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
flying-sheep committed Apr 3, 2021
1 parent a9d8899 commit 48fd7cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/github/commands/rest2html
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,8 @@ class GitHubHTMLTranslator(HTMLTranslator):

if align:
self.body[-1] = self.body[-1].replace(
' />', ' style="float: %s" />' % align)
'>', ' style="float: %s">' % align
)

def depart_image(self, node):
uri = node['uri']
Expand Down
2 changes: 1 addition & 1 deletion test/markups/README.rst.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,4 @@ <h2><a href="#id2">Field list</a></h2>
<p><a href="mailto:[email protected]">[email protected]</a></p>
<p>Press <kbd>Ctrl+C</kbd> to quit</p>
<img alt="foo.png" src="foo.png" style="float: right" />
<p><strong>RAW HTML!</strong></p> p {color:blue;}
<p><strong>RAW HTML!</strong></p> p {color:blue;}

0 comments on commit 48fd7cb

Please sign in to comment.