diff roundup/cgi/templating.py @ 7923:29a666d8a70d

issue2551285 - Remove StructuredText support Asked on the users mailing list if anybody was using it. Got no responses. I have never seen CI installing structuredtext packages so it's untested as well.
author John Rouillard <rouilj@ieee.org>
date Tue, 30 Apr 2024 22:27:57 -0400
parents 7d621b3ba8ba
children a9b136565838
line wrap: on
line diff
--- a/roundup/cgi/templating.py	Tue Apr 30 22:17:50 2024 -0400
+++ b/roundup/cgi/templating.py	Tue Apr 30 22:27:57 2024 -0400
@@ -38,13 +38,6 @@
 from .KeywordsExpr import render_keywords_expression_editor
 
 try:
-    from StructuredText.StructuredText import HTML as StructuredText
-except ImportError:
-    try:  # older version
-        import StructuredText
-    except ImportError:
-        StructuredText = None
-try:
     from docutils.core import publish_parts as ReStructuredText
 except ImportError:
     ReStructuredText = None
@@ -1866,19 +1859,6 @@
             s = self.hyper_re.sub(self._hyper_repl, s)
         return s
 
-    def stext(self, escape=0, hyperlink=1):
-        """ Render the value of the property as StructuredText.
-
-            This requires the StructureText module to be installed separately.
-        """
-        if not self.is_view_ok():
-            return self._('[hidden]')
-
-        s = self.plain(escape=escape, hyperlink=hyperlink)
-        if not StructuredText:
-            return s
-        return StructuredText(s, level=1, header=0)
-
     def rst(self, hyperlink=1):
         """ Render the value of the property as ReStructuredText.
 

Roundup Issue Tracker: http://roundup-tracker.org/