Skip to content

Commit be15068

Browse files
committed
wip
1 parent b7c3742 commit be15068

2 files changed

Lines changed: 459 additions & 5 deletions

File tree

src/parxy_core/services/contentmd_service.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,7 @@ def _guess_title(document: Document) -> Optional[str]:
4949
(
5050
b
5151
for b in first_page.blocks
52-
if isinstance(b, TextBlock)
53-
and b.role == 'doc-title'
54-
and b.text.strip()
52+
if isinstance(b, TextBlock) and b.role == 'doc-title' and b.text.strip()
5553
),
5654
None,
5755
)
@@ -221,8 +219,8 @@ def render(
221219
if document.metadata
222220
else None
223221
)
224-
resolved_author = (
225-
author or (document.metadata.author if document.metadata else None)
222+
resolved_author = author or (
223+
document.metadata.author if document.metadata else None
226224
)
227225

228226
frontmatter = ContentMdService._build_frontmatter(

0 commit comments

Comments
 (0)