Skip to content

Make sure some text is always added to the title node #16

Description

@lb803

access-aide/main.py

Lines 209 to 213 in 54e62f3

try:
title = root.xpath('//*[local-name()="title"]')[0]
h1 = root.xpath('//*[local-name()="h1"]')[0]
except IndexError:
return

rather than returning, the exception should try to get the title from other sources (i.e. file name half-title.xhtml -> "Half Title")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions