Commits  committed e3a873c

Sphinx formatting.

  • Participants
  • Parent commits 1f328d9
  • Branches trunk

Comments (0)

Files changed (2)

File webhelpers/html/

 But these return an ordinary string which is prone to double-escaping later::
-    "\n".join([literal('<span class="foo">Foo!</span>'), literal('Bar!')])
+    "\\n".join([literal('<span class="foo">Foo!</span>'), literal('Bar!')])
     "%s %s" % (literal("16"), literal("&lt;em&gt;kg&lt;/em&gt;"))
 Third-party libraries that don't want to import ``literal`` and thus avoid a

File webhelpers/pylonslib/

 This can easily created from a template. If you are using Genshi this
 should work:
+.. code-block: html
   <div id="selfHealingFeedback">
     <p class="notice" py:for="message in h.flash.pop_messages()"
        py:attrs="{'class' : message.category}" py:content="message">
-The needed CSS is very simple::
+The needed CSS is very simple:
+.. code-block: css
     #selfHealingFeedback {
         position: fixed;