1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-09-24 11:28:23 +02:00

Merge branch 'master' of github.com:squidfunk/mkdocs-material

This commit is contained in:
squidfunk 2023-09-30 11:33:17 +02:00
commit bc9cdb5774
No known key found for this signature in database
GPG Key ID: 5ED40BC4F9C436DF
2 changed files with 2 additions and 2 deletions

View File

@ -861,7 +861,7 @@ class BlogPlugin(BasePlugin[BlogConfig]):
# Create a file with the given content on disk
def _save_to_file(self, path: str, content: str):
os.makedirs(os.path.dirname(path), exist_ok = True)
with open(path, "w") as f:
with open(path, "w", encoding = "utf-8") as f:
f.write(content)
# -------------------------------------------------------------------------

View File

@ -861,7 +861,7 @@ class BlogPlugin(BasePlugin[BlogConfig]):
# Create a file with the given content on disk
def _save_to_file(self, path: str, content: str):
os.makedirs(os.path.dirname(path), exist_ok = True)
with open(path, "w") as f:
with open(path, "w", encoding = "utf-8") as f:
f.write(content)
# -------------------------------------------------------------------------