fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
wip change fb2 api
[librarian.git]
/
src
/
librarian
/
elements
/
front
/
base.py
diff --git
a/src/librarian/elements/front/base.py
b/src/librarian/elements/front/base.py
index
ad16ca3
..
a0fb305
100644
(file)
--- a/
src/librarian/elements/front/base.py
+++ b/
src/librarian/elements/front/base.py
@@
-7,13
+7,19
@@
from ..base import WLElement
class HeaderElement(WLElement):
NUMBERING = 'i'
HTML_TAG = 'span'
class HeaderElement(WLElement):
NUMBERING = 'i'
HTML_TAG = 'span'
+ FB2_TAG = 'p'
def txt_build(self, builder):
builder.enter_fragment('header')
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')
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()
builder.exit_fragment()