# HG changeset patch # User Thierry Florac # Date 1567606012 -7200 # Node ID 2c473861fcc2719aa3d61fdaff834b624adf73c2 # Parent ea22252ccee146ad34a9957046358cec71cf1f9e Formatting... diff -r ea22252ccee1 -r 2c473861fcc2 src/pyams_default_theme/component/paragraph/html.py --- a/src/pyams_default_theme/component/paragraph/html.py Fri Jul 26 19:21:06 2019 +0200 +++ b/src/pyams_default_theme/component/paragraph/html.py Wed Sep 04 16:06:52 2019 +0200 @@ -10,8 +10,6 @@ # FOR A PARTICULAR PURPOSE. # -__docformat__ = 'restructuredtext' - from fanstatic import ConfigurationError from pyams_content.component.illustration import IIllustration @@ -26,6 +24,9 @@ from pyams_utils.interfaces.text import IHTMLRenderer from pyams_utils.pygments import IPygmentsCodeConfiguration, render_source + +__docformat__ = 'restructuredtext' + from pyams_default_theme import _ @@ -100,7 +101,8 @@ def source(self): code = self.body if code: - renderer = self.request.registry.queryMultiAdapter((code, self.request), IHTMLRenderer, name='rest') + renderer = self.request.registry.queryMultiAdapter((code, self.request), IHTMLRenderer, + name='rest') if renderer is not None: return renderer.render() return '' @@ -120,7 +122,8 @@ def source(self): code = self.body if code: - renderer = self.request.registry.queryMultiAdapter((code, self.request), IHTMLRenderer, name='markdown') + renderer = self.request.registry.queryMultiAdapter((code, self.request), IHTMLRenderer, + name='markdown') if renderer is not None: return renderer.render() return '' diff -r ea22252ccee1 -r 2c473861fcc2 src/pyams_default_theme/component/paragraph/templates/raw-default.pt --- a/src/pyams_default_theme/component/paragraph/templates/raw-default.pt Fri Jul 26 19:21:06 2019 +0200 +++ b/src/pyams_default_theme/component/paragraph/templates/raw-default.pt Wed Sep 04 16:06:52 2019 +0200 @@ -1,2 +1,2 @@ -

title

-
body
+

${view.title}

+
${structure:view.body}
\ No newline at end of file