diff options
| author | Georg Brandl <georg@python.org> | 2011-10-02 19:54:35 +0200 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2011-10-02 19:54:35 +0200 |
| commit | a1eef6bd2f8a207e0bd18dcc3c08e2d58f816909 (patch) | |
| tree | f70a83d69b4fab708b6ee36f4cdbf39b7b6417ff /sphinx/util | |
| parent | d85077ea8e6acc46d67561c64dbd32c2312e5c69 (diff) | |
| download | sphinx-a1eef6bd2f8a207e0bd18dcc3c08e2d58f816909.tar.gz | |
Re-add monkey patch whose removal made latex build fail.
Diffstat (limited to 'sphinx/util')
| -rw-r--r-- | sphinx/util/nodes.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sphinx/util/nodes.py b/sphinx/util/nodes.py index 49f3a212..c2b7edf4 100644 --- a/sphinx/util/nodes.py +++ b/sphinx/util/nodes.py @@ -193,3 +193,10 @@ def _new_contains(self, key): return key in self.children nodes.Node.__contains__ = _new_contains + +# monkey-patch Element.copy to copy the rawsource + +def _new_copy(self): + return self.__class__(self.rawsource, **self.attributes) + +nodes.Element.copy = _new_copy |
