* Dmitry Shachnev <mity...@gmail.com>, 2012-10-29, 10:05:
The attached patch is a cherry-pick of upstream changeset that fixes
build of localized projects that contain footnotes in the text.
It affects the ubuntu-packaging-guide package (yes, a package in
Debian) which is going to ship translation packages.
Does u-p-g uses autonumbered footnotes, or it's some other kind of
markup that triggers the issue?
- for child in patch.children: # update leaves
- child.parent = node
- node.children = patch.children
+
+ # copy text children
+ for i, child in enumerate(patch.children):
+ if isinstance(child, nodes.Text):
+ child.parent = node
+ node.children[i] = child
It appears to me that this patch trades one bug for another. What if
types of "node.children[i]" and "child" don't match? Or if "patch" has a
different number of children than "node"?
--
Jakub Wilk
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org