Skip to content
Snippets Groups Projects
Commit 9fb0a1e2 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

add an entry in features window for RST generator

parent ba608b6e
No related branches found
No related tags found
No related merge requests found
......@@ -94,6 +94,10 @@ class FeaturesWindow:
_('Encrypting chatmessages.'),
_('Requires python-crypto.'),
_('Requires python-crypto.')),
_('RST Generator'): (self.docutils_available,
_('Generate XHTML output from RST code (see http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html).'),
_('Requires python-docutils.'),
_('Requires python-docutils.')),
}
# name, supported
......@@ -283,3 +287,10 @@ class FeaturesWindow:
def pycrypto_available(self):
from common import gajim
return gajim.HAVE_PYCRYPTO
def docutils_available(self):
try:
import docutils
except:
return False
return True
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment