[py-svn] r21831 - py/dist/py/rest
jan at codespeak.net
jan at codespeak.net
Mon Jan 9 13:10:20 CET 2006
Author: jan
Date: Mon Jan 9 13:10:19 2006
New Revision: 21831
Modified:
py/dist/py/rest/rst.py
Log:
added hypertarget and hyperref
Modified: py/dist/py/rest/rst.py
==============================================================================
--- py/dist/py/rest/rst.py (original)
+++ py/dist/py/rest/rst.py Mon Jan 9 13:10:19 2006
@@ -187,6 +187,11 @@
__tagclass__ = RestTag
__stickname__ = True
+ class hyperref(RestTag):
+ start_string = '`'
+ end_string = '`_'
+ write_literal = True
+
class emph(RestTag):
start_string = '*'
end_string = start_string
@@ -219,6 +224,12 @@
def write_children(self, out, child_outs):
out.extend(child_outs, join = ' ' * len(self.start_string))
+ class hypertarget(RestTag):
+ sep = '\n\n'
+ start_string = '.. _'
+ end_string = ':'
+ write_literal = True
+
class title(RestTag):
sep = '\n'
start_string = '#'
More information about the pytest-commit
mailing list