Exemplo n.º 1
0
 def paragraph(self, on, id=None):
     FormatterBase.paragraph(self, on)
     if self._in_li:
         self._in_li = self._in_li + 1
     attr = self._langAttr()
     if self.inline_edit_force_state is not None:
         self.inline_edit = self.inline_edit_force_state
     if self.inline_edit and on:
         attr = '%s id="%s"' % (attr, id or self.inline_edit_id())
     result = ['<p%s>' % attr, '\n</p>'][not on]
     return '%s\n' % result
Exemplo n.º 2
0
 def paragraph(self, on):
     FormatterBase.paragraph(self, on)
     return ['\n', ''][not on]