Skip to content

Commit 15f620a

Browse files
committed
Use double quotes for HTML elements
1 parent e339515 commit 15f620a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mkdocs_git_authors_plugin/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def site_authors_summary(authors, config: dict):
105105
lines = ": %s lines" % author.lines() if show_line_count else ""
106106
author_name = ""
107107
if show_email_address:
108-
author_name = "<a href='mailto:%s'>%s</a>" % (author.email(), author.name())
108+
author_name = '<a href="mailto:%s">%s</a>' % (author.email(), author.name())
109109
else:
110110
author_name = author.name()
111111
result += """

tests/test_basic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def test_basic_working(tmp_path, mkdocs_file):
7575

7676
contents = index_file.read_text()
7777
assert re.search("<span class='git-page-authors", contents)
78-
assert re.search("<li><a href='mailto:[email protected]'>Tim Vink</a></li>", contents)
78+
assert re.search('<a href="mailto:[email protected]">Tim Vink</a>', contents)
7979

8080

8181

0 commit comments

Comments
 (0)