Skip to content

Critical error for language tag even when it exists in the text file #347

Description

@rtonsing

Related to #346, but in this case the language tag is there.

*** START OF THE PROJECT GUTENBERG EBOOK 78999 *** language: Finnish
results in
CRITICAL:root:"file:/htdocs/ebookmaker/cache/20260816090928/out/10001-h.html":1.16-2.16: info warning: This document appears to be written in Finnish but the “html” start tag has “lang="en"”. Consider using “lang="fi"” (or variant) instead.

Moving the language tag before the sentinel fixes the issue.

We need to either update EBM to detect the language tag after the sentinel, or change Workflow to place the sentinel after the tag. But changing Workflow will only fix future submissions.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions