X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/0604bdd5f693da9f1c78f9d9fa2276f0c7b6c17b..f164694b5e7ad5ed5f6d95743f9259bd3a9292bd:/src/librarian/elements/front/base.py diff --git a/src/librarian/elements/front/base.py b/src/librarian/elements/front/base.py index 9e961df..a0fb305 100644 --- a/src/librarian/elements/front/base.py +++ b/src/librarian/elements/front/base.py @@ -1,15 +1,25 @@ +# This file is part of Librarian, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Wolne Lektury. See NOTICE for more information. +# from ..base import WLElement class HeaderElement(WLElement): + NUMBERING = 'i' HTML_TAG = 'span' + FB2_TAG = 'p' def txt_build(self, builder): builder.enter_fragment('header') - super(HeaderElement, self).txt_build(builder) + super().txt_build(builder) builder.exit_fragment() def html_build(self, builder): builder.enter_fragment('header') - super(HeaderElement, self).html_build(builder) + super().html_build(builder) + builder.exit_fragment() + + def fb2_build(self, builder): + builder.enter_fragment('header') + super().fb2_build(builder) builder.exit_fragment()