Skip to content

Commit ceba212

Browse files
reformatted the latex serializer
Signed-off-by: Peter Staar <[email protected]>
1 parent 430d1b8 commit ceba212

File tree

1 file changed

+4
-4
lines changed
  • docling_core/transforms/serializer

1 file changed

+4
-4
lines changed

docling_core/transforms/serializer/latex.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55

66
"""Define classes for LaTeX serialization."""
77

8-
from pathlib import Path
98
import re
9+
from pathlib import Path
1010
from typing import Any, Optional, Union
1111

12-
from pydantic import AnyUrl, BaseModel, Field
12+
from pydantic import AnyUrl, BaseModel
1313
from typing_extensions import override
1414

1515
from docling_core.transforms.serializer.base import (
@@ -656,7 +656,7 @@ def serialize_doc(
656656
# Build optional preamble
657657
preamble_lines: list[str] = []
658658
if params.document_class:
659-
preamble_lines.append(params.document_class+"\n")
659+
preamble_lines.append(params.document_class + "\n")
660660
for pkg in params.packages:
661661
line = pkg.strip()
662662
if not line:
@@ -698,7 +698,7 @@ def requires_page_break(self) -> bool:
698698
return self.params.page_break_command is not None
699699

700700
def _post_process_title(self, body_text: str) -> tuple[Optional[str], str, bool]:
701-
"""Detect and relocate LaTeX \title{...} commands.
701+
r"""Detect and relocate LaTeX \title{...} commands.
702702
703703
- Extracts the first \title{...} command found in the body.
704704
- Removes all \title{...} occurrences from the body.

0 commit comments

Comments
 (0)