Skip to content

fix: add forward slashes to singleton tags #355

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docling_core/transforms/serializer/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -1080,7 +1080,7 @@ def _generate_head(self) -> str:
if self.params.html_head is not None:
return self.params.html_head

head_parts = ["<head>", '<meta charset="UTF-8">']
head_parts = ["<head>", '<meta charset="UTF-8"/>']

# Add metadata if requested
if params.add_document_metadata:
Expand All @@ -1090,7 +1090,7 @@ def _generate_head(self) -> str:
head_parts.append("<title>Docling Document</title>")

head_parts.append(
'<meta name="generator" content="Docling HTML Serializer">'
'<meta name="generator" content="Docling HTML Serializer"/>'
)

# Add default styles or custom CSS
Expand Down
Loading