3
3
import os
4
4
import time
5
5
6
- from markupsafe import Markup
7
-
8
6
from mkdocs_git_revision_date_localized_plugin .ci import raise_ci_warnings
9
7
from mkdocs_git_revision_date_localized_plugin .dates import get_date_formats
10
8
@@ -87,7 +85,7 @@ def get_git_commit_timestamp(
87
85
commit_timestamp = git .log (
88
86
realpath , date = "unix" , format = "%at" , diff_filter = "A" , no_show_signature = True , follow = True
89
87
)
90
- # A file can be created multiple times, through a file renamed.
88
+ # A file can be created multiple times, through a file renamed.
91
89
# Commits are ordered with most recent commit first
92
90
# Get the oldest commit only
93
91
if commit_timestamp != "" :
@@ -167,7 +165,7 @@ def get_date_formats_for_timestamp(
167
165
dict: Localized date variants.
168
166
"""
169
167
date_formats = get_date_formats (
170
- unix_timestamp = commit_timestamp ,
168
+ unix_timestamp = commit_timestamp ,
171
169
time_zone = self .config .get ("timezone" ),
172
170
locale = locale ,
173
171
custom_format = self .config .get ('custom_format' )
@@ -185,7 +183,7 @@ def add_spans(date_formats: Dict[str, str]) -> Dict[str, str]:
185
183
"""
186
184
for date_type , date_string in date_formats .items ():
187
185
date_formats [date_type ] = (
188
- Markup ( '<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-%s">%s</span>' )
186
+ '<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-%s">%s</span>'
189
187
% (date_type , date_string )
190
188
)
191
189
return date_formats
0 commit comments