Skip to content

Commit

Permalink
Update inject.py
Browse files Browse the repository at this point in the history
  • Loading branch information
njzjz authored Oct 8, 2024
1 parent b8edca5 commit eb189f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepmodeling_sphinx/inject.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def render(self, template, render_context):
comment_end = r"<!--deepmodeling icp end-->"
if comment_begin in content:
return content
footer = content.lower().find("</footer>")
footer = content.lower().rfind("</footer>")
icp_footer = (
'<p><a href="https://beian.miit.gov.cn" target="_blank">%s</a></p>'
% icp_no
Expand Down

0 comments on commit eb189f2

Please sign in to comment.