Skip to content

Commit 4b57021

Browse files
committed
[bugfix] Resolve 'Duplicate explicit target name' with Use anonymous hyperlink
Thanks, ryu22e-san
1 parent 3f6cab4 commit 4b57021

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/extensions/event_history.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ def hyperlink_csv_data(csv_data: Sequence[str]) -> list[str]:
1515
... ]
1616
>>> expected = [
1717
... "開催地,参加人数",
18-
... "`京都 <https://pyconjp.connpass.com/event/33014/>`_,一般参加5人",
19-
... "`愛媛 <https://pyconjp.connpass.com/event/34564/>`_,一般参加11人、学生1人",
18+
... "`京都 <https://pyconjp.connpass.com/event/33014/>`__,一般参加5人",
19+
... "`愛媛 <https://pyconjp.connpass.com/event/34564/>`__,一般参加11人、学生1人",
2020
... ]
2121
>>> actual = EventHistoryCSVTable.hyperlink_csv_data(csv_data)
2222
>>> actual == expected
@@ -25,7 +25,7 @@ def hyperlink_csv_data(csv_data: Sequence[str]) -> list[str]:
2525
# TODO: 引数にdialectを追加する余地がありそう
2626
reader = csv.DictReader(csv_data)
2727
converted_csv_data = [
28-
f"`{row['開催地']} <{row['URL']}>`_,{row['参加人数']}" for row in reader
28+
f"`{row['開催地']} <{row['URL']}>`__,{row['参加人数']}" for row in reader
2929
]
3030
header = "開催地,参加人数"
3131
converted_csv_data.insert(0, header)

0 commit comments

Comments
 (0)