Skip to content

Commit 830f0e6

Browse files
committed
Black
1 parent a106516 commit 830f0e6

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

pandas/io/html.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ def _build_doc(self):
767767
raise XMLSyntaxError("no text parsed from document", 0, 0, 0)
768768

769769
for br in r.xpath("*//br"):
770-
br.tail = "\n" + (br.tail or '')
770+
br.tail = "\n" + (br.tail or "")
771771

772772
return r
773773

pandas/tests/io/test_html.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,7 +1289,8 @@ def test_parse_path_object(self, datapath):
12891289

12901290
def test_parse_br_as_space(self):
12911291
# GH 29528: pd.read_html() convert <br> to space
1292-
result = self.read_html("""
1292+
result = self.read_html(
1293+
"""
12931294
<table>
12941295
<tr>
12951296
<th>A</th>
@@ -1298,7 +1299,8 @@ def test_parse_br_as_space(self):
12981299
<td>word1<br>word2</td>
12991300
</tr>
13001301
</table>
1301-
""")[0]
1302+
"""
1303+
)[0]
13021304

13031305
expected = DataFrame(data=[["word1 word2"]], columns=["A"])
13041306

0 commit comments

Comments
 (0)