summaryrefslogtreecommitdiff
path: root/sphinx
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2013-01-13 10:22:38 +0100
committerGeorg Brandl <georg@python.org>2013-01-13 10:22:38 +0100
commitb233525fb2ae18bfe7d67ad3f0f7a0a8f7a81426 (patch)
tree4352ea99b020ac59e014993346d59b4db8e21ec1 /sphinx
parent4779415eaad5323f560a57513dd0c7081b8da802 (diff)
downloadsphinx-b233525fb2ae18bfe7d67ad3f0f7a0a8f7a81426.tar.gz
Fix long lines reported by "make check".
Diffstat (limited to 'sphinx')
-rw-r--r--sphinx/search/__init__.py3
-rw-r--r--sphinx/util/nodes.py2
2 files changed, 3 insertions, 2 deletions
diff --git a/sphinx/search/__init__.py b/sphinx/search/__init__.py
index 3a43ae8e..764c9208 100644
--- a/sphinx/search/__init__.py
+++ b/sphinx/search/__init__.py
@@ -311,6 +311,7 @@ class IndexBuilder(object):
def context_for_searchtool(self):
return dict(
search_language_stemming_code = self.lang.js_stemmer_code,
- search_language_stop_words = jsdump.dumps(sorted(self.lang.stopwords)),
+ search_language_stop_words =
+ jsdump.dumps(sorted(self.lang.stopwords)),
search_scorer_tool = self.js_scorer_code,
)
diff --git a/sphinx/util/nodes.py b/sphinx/util/nodes.py
index acd2afe9..90e674b6 100644
--- a/sphinx/util/nodes.py
+++ b/sphinx/util/nodes.py
@@ -54,7 +54,7 @@ def extract_messages(doctree):
rawsource.split("\n", 2)[0]
# workaround: nodes.caption doesn't have source, line.
# this issue was filed to Docutils tracker:
- # https://sourceforge.net/tracker/?func=detail&aid=3599485&group_id=38414&atid=422032
+ # sf.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 = 0 #need fix docutils to get `node.line`