You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by no...@apache.org on 2014/08/31 22:09:46 UTC

git commit: TS-2832 docs: Fix build failure

Repository: trafficserver
Updated Branches:
  refs/heads/master afa90d0f1 -> d0c72536e


TS-2832 docs: Fix build failure


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/d0c72536
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/d0c72536
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/d0c72536

Branch: refs/heads/master
Commit: d0c72536e3691acb1a789b8320c88985bdeac6c5
Parents: afa90d0
Author: Jack Bates <ja...@nottheoilrig.com>
Authored: Sun Aug 31 13:07:10 2014 -0700
Committer: Jack Bates <ja...@nottheoilrig.com>
Committed: Sun Aug 31 13:07:10 2014 -0700

----------------------------------------------------------------------
 doc/ext/doxygen.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/d0c72536/doc/ext/doxygen.py
----------------------------------------------------------------------
diff --git a/doc/ext/doxygen.py b/doc/ext/doxygen.py
index 0cc651f..b0dba8a 100644
--- a/doc/ext/doxygen.py
+++ b/doc/ext/doxygen.py
@@ -77,9 +77,10 @@ def doctree_resolved(app, doctree, docname):
       # file and line number from Doxygen and use them to construct the
       # link.
       location = memberdef.find('location')
-
       filename = path.basename(location.get('file'))
-      line = location.get('bodystart')
+
+      # Declarations have no bodystart
+      line = location.get('bodystart') or location.get('line')
 
       emphasis = nodes.emphasis('', ' ' + filename + ' line ' + line)