Skip to content

Commit 176029d

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 5f3ca68 commit 176029d

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

onenote_dump/convert.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* Try to figure out the language of code blocks (guesslang)
88
99
"""
10+
1011
import mimetypes
1112
import re
1213
import tempfile
@@ -50,17 +51,15 @@ def create_metadata(self):
5051
parent_tag = self.page.get("parentSection", {}).get("displayName", "")
5152
if parent_tag:
5253
tags.append(parent_tag)
53-
return textwrap.dedent(
54-
f"""
54+
return textwrap.dedent(f"""
5555
---
5656
title: "{self.page.get('title')}"
5757
created: '{self.page.get('createdDateTime')}'
5858
modified: '{self.page.get('lastModifiedDateTime')}'
5959
tags: [{', '.join(tags)}]
6060
---
6161
62-
"""
63-
).lstrip()
62+
""").lstrip()
6463

6564
def handle_element(self, element):
6665
content = ""

0 commit comments

Comments
 (0)