summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshimizukawa <shimizukawa@gmail.com>2013-01-12 22:30:40 +0900
committershimizukawa <shimizukawa@gmail.com>2013-01-12 22:30:40 +0900
commit3f309459018bea48cc731d4ca9d5fb9d8fc8e6a0 (patch)
treee6eff640e241560e8c045e050ce6403be0e1c6db
parentfef779469db0d635669beee3a1bfe1b34e8a0181 (diff)
downloadsphinx-3f309459018bea48cc731d4ca9d5fb9d8fc8e6a0.tar.gz
figure-caption work-around set int or None to node.line instead of empty string.
-rw-r--r--sphinx/util/nodes.py2
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