dabodoc Commit
Revision 76
Date: 2011-04-02 03:49:39 -0700 (Sat, 02 Apr 2011)
Author: Werner
Trac: http://trac.dabodev.com/changeset/76
Changed:
U trunk/api/sphinx/makeRST.py
Log:
- move labels to before entry
Diff:
Modified: trunk/api/sphinx/makeRST.py
===================================================================
--- trunk/api/sphinx/makeRST.py 2011-04-01 13:22:08 UTC (rev 75)
+++ trunk/api/sphinx/makeRST.py 2011-04-02 10:49:39 UTC (rev 76)
@@ -1093,6 +1093,12 @@
for prop in props:
isInherited = False
strs = ""
+
+ # we need to create a unique label for use in the summary table
+ uniqueLinkLabel = "no-" + str(uniqueLinkCounter)
+ uniqueLinkCounter += 1
+ strs += ".. _%s:\n\n" % (uniqueLinkLabel, )
+
if prop[:9] == "[Dynamic]":
prop = prop[9:]
d = kls.getPropertyInfo(prop)
@@ -1112,11 +1118,6 @@
strs += doc + "\n\n"
- # we need to create a unique label for use in the summary table
- uniqueLinkLabel = "no-" + str(uniqueLinkCounter)
- uniqueLinkCounter += 1
- strs += ".. _%s:\n\n" % (uniqueLinkLabel, )
-
# summary info
sumDict[uniqueLinkLabel] = [prop, sumDoc[:100].strip() ]
@@ -1183,6 +1184,11 @@
allEvents = ""
for event in events:
strs = ""
+ # we need to create a unique label for use in the summary table
+ uniqueLinkLabel = "no-" + str(uniqueLinkCounter)
+ uniqueLinkCounter += 1
+ strs += ".. _%s:\n\n" % (uniqueLinkLabel, )
+
e = dEvents.__dict__[event]
strs += "**" + event + "** " + "\n\n"
@@ -1200,11 +1206,6 @@
strs += doc + "\n\n"
- # we need to create a unique label for use in the summary table
- uniqueLinkLabel = "no-" + str(uniqueLinkCounter)
- uniqueLinkCounter += 1
- strs += ".. _%s:\n\n" % (uniqueLinkLabel, )
-
# summary info
sumDict[uniqueLinkLabel] = [event, sumDoc[:100].strip() ]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message:
http://leafe.com/archives/byMID/[email protected]