mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-07-29 15:55:47 -05:00
Create ipasphinx package for Sphinx plugins
Sphinx is extensible with plugins that can add new syntax, roles, directives, domains, and more. Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
@@ -304,6 +304,10 @@ class Gettext(LazyText):
|
||||
def format(self, *args, **kwargs):
|
||||
return unicode(self).format(*args, **kwargs)
|
||||
|
||||
def expandtabs(self, tabsize=8):
|
||||
"""Compatibility for sphinx prepare_docstring()"""
|
||||
return str(self).expandtabs(tabsize)
|
||||
|
||||
|
||||
@six.python_2_unicode_compatible
|
||||
class FixMe(Gettext):
|
||||
@@ -524,6 +528,10 @@ class ConcatenatedLazyText:
|
||||
else:
|
||||
return ConcatenatedLazyText(*[other] + self.components)
|
||||
|
||||
def expandtabs(self, tabsize=8):
|
||||
"""Compatibility for sphinx prepare_docstring()"""
|
||||
return str(self).expandtabs(tabsize)
|
||||
|
||||
|
||||
class GettextFactory:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user