diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2014-02-21 10:20:03 +0200 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2014-04-10 13:28:27 -0500 |
commit | f4a5325e677e5fb4ce9519ad29843e1e4645423d (patch) | |
tree | dbf0f4954c3b0f08f8d44944ad3ff438e46b7b44 | |
parent | 2edd6b0b91b38dd77837cdb21ac3a401c797dd27 (diff) | |
download | mediagoblin-f4a5325e677e5fb4ce9519ad29843e1e4645423d.tar.lz mediagoblin-f4a5325e677e5fb4ce9519ad29843e1e4645423d.tar.xz mediagoblin-f4a5325e677e5fb4ce9519ad29843e1e4645423d.zip |
Tweak the trim whitespace plugin documentation.
- Fix code highlighting
- Wrap all lines to 80 chars
- Add more markup (eg. Response() to ``Response()``)
-rw-r--r-- | mediagoblin/plugins/trim_whitespace/README.rst | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/mediagoblin/plugins/trim_whitespace/README.rst b/mediagoblin/plugins/trim_whitespace/README.rst index b55ce35e..db9a0c53 100644 --- a/mediagoblin/plugins/trim_whitespace/README.rst +++ b/mediagoblin/plugins/trim_whitespace/README.rst @@ -3,17 +3,22 @@ ======================= Mediagoblin templates are written with 80 char limit for better -readability. However that means that the html output is very verbose -containing LOTS of whitespace. This plugin inserts a Middleware that -filters out whitespace from the returned HTML in the Response() objects. +readability. However that means that the HTML output is very verbose +containing *lots* of whitespace. This plugin inserts a middleware that +filters out whitespace from the returned HTML in the ``Response()`` +objects. -Simply enable this plugin by putting it somewhere where python can reach it and put it's path into the [plugins] section of your mediagoblin.ini or mediagoblin_local.ini like for example this: +Simply enable this plugin by putting it somewhere where Python can reach +it and put it's path into the ``[plugins]`` section of your +``mediagoblin.ini`` or ``mediagoblin_local.ini`` like for example this: + +.. code-block:: ini [plugins] [[mediagoblin.plugins.trim_whitespace]] There is no further configuration required. If this plugin is enabled, -all text/html documents should not have lots of whitespace in between +all *text/html* documents should not have lots of whitespace in between elements, although it does a very naive filtering right now (just keep the first whitespace and delete all subsequent ones). |