diff options
| author | shimizukawa <shimizukawa@gmail.com> | 2013-01-12 22:30:40 +0900 |
|---|---|---|
| committer | shimizukawa <shimizukawa@gmail.com> | 2013-01-12 22:30:40 +0900 |
| commit | 3f309459018bea48cc731d4ca9d5fb9d8fc8e6a0 (patch) | |
| tree | e6eff640e241560e8c045e050ce6403be0e1c6db | |
| parent | fef779469db0d635669beee3a1bfe1b34e8a0181 (diff) | |
| download | sphinx-3f309459018bea48cc731d4ca9d5fb9d8fc8e6a0.tar.gz | |
figure-caption work-around set int or None to node.line instead of empty string.
| -rw-r--r-- | sphinx/util/nodes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/util/nodes.py b/sphinx/util/nodes.py index 65accbf2..acd2afe9 100644 --- a/sphinx/util/nodes.py +++ b/sphinx/util/nodes.py @@ -57,7 +57,7 @@ def extract_messages(doctree): # https://sourceforge.net/tracker/?func=detail&aid=3599485&group_id=38414&atid=422032 if isinstance(node, nodes.caption) and not node.source: node.source = node.parent.source - node.line = '' #need fix docutils to get `node.line` + node.line = 0 #need fix docutils to get `node.line` if not node.source: continue # built-in message |
