Skip to content

Commit c8de62f

Browse files
committed
img has no /> anymore
1 parent a9d8899 commit c8de62f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lib/github/commands/rest2html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,8 @@ class GitHubHTMLTranslator(HTMLTranslator):
251251

252252
if align:
253253
self.body[-1] = self.body[-1].replace(
254-
' />', ' style="float: %s" />' % align)
254+
'>', ' style="float: %s">' % align
255+
)
255256

256257
def depart_image(self, node):
257258
uri = node['uri']

test/markups/README.rst.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,5 +133,5 @@ <h2><a href="#id2">Field list</a></h2>
133133
</table>
134134
<p><a href="mailto:[email protected]">[email protected]</a></p>
135135
<p>Press <kbd>Ctrl+C</kbd> to quit</p>
136-
<img alt="foo.png" src="foo.png" style="float: right" />
137-
<p><strong>RAW HTML!</strong></p> p {color:blue;}
136+
<img alt="foo.png" src="foo.png" style="float: right">
137+
<p><strong>RAW HTML!</strong></p> p {color:blue;}

0 commit comments

Comments
 (0)