Skip to content

Commit 48fd7cb

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

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,4 +134,4 @@ <h2><a href="#id2">Field list</a></h2>
134134
<p><a href="mailto:[email protected]">[email protected]</a></p>
135135
<p>Press <kbd>Ctrl+C</kbd> to quit</p>
136136
<img alt="foo.png" src="foo.png" style="float: right" />
137-
<p><strong>RAW HTML!</strong></p> p {color:blue;}
137+
<p><strong>RAW HTML!</strong></p> p {color:blue;}

0 commit comments

Comments
 (0)