fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
missing anchors in book html
[librarian.git]
/
librarian
/
html.py
diff --git
a/librarian/html.py
b/librarian/html.py
index
6a6e3db
..
defb84c
100644
(file)
--- a/
librarian/html.py
+++ b/
librarian/html.py
@@
-57,6
+57,7
@@
def transform(wldoc, stylesheet='legacy', options=None, flags=None):
if not options:
options = {}
if not options:
options = {}
+ options.setdefault('gallery', "''")
result = document.transform(style, **options)
del document # no longer needed large object :)
result = document.transform(style, **options)
del document # no longer needed large object :)
@@
-216,7
+217,7
@@
def add_anchors(root):
counter = 1
for element in root.iterdescendants():
def f(e):
counter = 1
for element in root.iterdescendants():
def f(e):
- return e.get('class') in ('note', 'motto', 'motto_podpis', 'dedication') or \
+ return e.get('class') in ('note', 'motto', 'motto_podpis', 'dedication'
, 'frame'
) or \
e.get('id') == 'nota_red' or e.tag == 'blockquote'
if any_ancestor(element, f):
continue
e.get('id') == 'nota_red' or e.tag == 'blockquote'
if any_ancestor(element, f):
continue