[py-svn] r35471 - py/dist/py/rest
fijal at codespeak.net
fijal at codespeak.net
Fri Dec 8 12:14:13 CET 2006
Author: fijal
Date: Fri Dec 8 12:14:11 2006
New Revision: 35471
Modified:
py/dist/py/rest/rst.py
Log:
Added two simple classes.
Modified: py/dist/py/rest/rst.py
==============================================================================
--- py/dist/py/rest/rst.py (original)
+++ py/dist/py/rest/rst.py Fri Dec 8 12:14:11 2006
@@ -351,6 +351,18 @@
next = next.parent
return next
+class InternalLink(AbstractText):
+ start = '`'
+ end = '`_'
+
+class LinkTarget(Paragraph):
+ def __init__(self, name, target):
+ self.name = name
+ self.target = target
+
+ def text(self):
+ return ".. _`%s`:%s\n" % (self.name, self.target)
+
class Substitution(AbstractText):
def __init__(self, text, **kwargs):
raise NotImplemented('XXX')
More information about the py-svn
mailing list