fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Support for block annotations. Option to use endnotes in PDF.
[librarian.git]
/
src
/
librarian
/
parser.py
diff --git
a/src/librarian/parser.py
b/src/librarian/parser.py
index
3ae081b
..
6e21d4d
100644
(file)
--- a/
src/librarian/parser.py
+++ b/
src/librarian/parser.py
@@
-197,6
+197,13
@@
class WLDocument(object):
node.tag = 'span'
node.tail = tail
node.tag = 'span'
node.tail = tail
+ def fix_pa_akap(self):
+ for pa in ('pa','pe','pr','pt'):
+ for akap in self.edoc.findall(f'//{pa}/akap'):
+ akap.getparent().set('blocks', 'true')
+ if not akap.getparent().index(akap):
+ akap.set('inline', 'true')
+
def editors(self):
"""Returns a set of all editors for book and its children.
def editors(self):
"""Returns a set of all editors for book and its children.