def preformatted(self, on, **kw): FormatterBase.preformatted(self, on) snip = u'---%<' snip = snip + (u'-' * (78 - len(snip))) if on: return u'\n' + snip + u'\n' else: return snip + u'\n'
def preformatted(self, on, **kw): # Maintain the accessible flag `in_pre` FormatterBase.preformatted(self, on) if on: # TODO Minmized styles should be supported result = self._output_EOL_BLK(u"::") self._indentation += 3 return result else: self._indentation -= 3 return self._output_EOL_BLK()
def preformatted(self, on, **kw): FormatterBase.preformatted(self, on) snip = u'%s\n' % u'---%<'.ljust(78 - self._indent, u'-') if on: self.paragraph_begin() return self.wrap(snip) else: if self._textbuf and not self._textbuf.endswith('\n'): self._textbuf += '\n' result = self.wrap(snip) self.paragraph_end() return result
def preformatted(self, on, **kw): FormatterBase.preformatted(self, on) self._elem(u'source', on) return ''
def preformatted(self, on, **kw): FormatterBase.preformatted(self, on) self._elem(u"source", on) return ""
def preformatted(self, on, **kw): FormatterBase.preformatted(self, on) result = '' if self.in_p: result = self.paragraph(0) return result + ['<source><![CDATA[', ']]></source>'][not on]
def preformatted(self, on, **kw): FormatterBase.preformatted(self, on) result = '' if self.in_p: result = self.paragraph(0) return result + ['<code>', '</code>\n'][not on]
def preformatted(self, on): FormatterBase.preformatted(self, on) self.verbatim = on return self.write_text(['\\begin{verbatim}\n', '\\end{verbatim}\n'][not on])
def preformatted(self, on, **kw): FormatterBase.preformatted(self, on) result = '' if self.in_p: result = self.paragraph(0) return result + ['<file>', '</file>\n'][not on]