code: def _indent(text, level=1):
      ''' Does a proper indenting for Sphinx rst '''
  
      prefix = ' ' * (4 * level)
  
      def prefixed_lines():
          for line in text.splitlines(True):
              yield (prefix + line if line.strip() else line)
  
      return ''.join(prefixed_lines()f _indent(text, level=1):
      ''' Does a proper indenting for Sphinx rst '''
  
      prefix = ' ' * (4 * level)
  
      def prefixed_lines():
          for line in text.splitlines(True):
              yield (prefix + line if line.strip() else line)
  
      return ''.join(prefixed_lines())
docs: Does a proper indenting for Sphinx rst