Skip to content

Commit

Permalink
Use double quotes for HTML elements
Browse files Browse the repository at this point in the history
  • Loading branch information
timvink committed Oct 31, 2022
1 parent e339515 commit 15f620a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mkdocs_git_authors_plugin/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def site_authors_summary(authors, config: dict):
lines = ": %s lines" % author.lines() if show_line_count else ""
author_name = ""
if show_email_address:
author_name = "<a href='mailto:%s'>%s</a>" % (author.email(), author.name())
author_name = '<a href="mailto:%s">%s</a>' % (author.email(), author.name())
else:
author_name = author.name()
result += """
Expand Down
2 changes: 1 addition & 1 deletion tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def test_basic_working(tmp_path, mkdocs_file):

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



Expand Down

0 comments on commit 15f620a

Please sign in to comment.