From 542b1d30cca5d6c17b662438d594a91b864ccc56 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Thu, 14 Jan 2016 21:43:39 +0100 Subject: man: added documentation about whitespace control --- man/blogc-template.7.ronn | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/man/blogc-template.7.ronn b/man/blogc-template.7.ronn index 3a665ab..bd38618 100644 --- a/man/blogc-template.7.ronn +++ b/man/blogc-template.7.ronn @@ -199,6 +199,19 @@ iteration. If the value of the `TAGS` variable is "item1 item2 item3", this template is rendered 3 times, one for each item value. +## WHITESPACE CONTROL + +Users can control how whitespaces (space, form-feed (`\f`), newline (`\n`), +carriage return (`\r`), horizontal tab (`\t`), and vertical tab (`\v`)) are +handled before and after statements delimited with `{%` and `%}` sequences, +respectively. + +Adding a minus sign (`-`) after a `{%` sequence (`{%-`) will remove whitespaces +before the sequence and after the last non-whitespace character before the sequence. + +Adding a minus sign (`-`) before a `%}` sequence (`-%}`) will remove whitespaces +after the sequence and before the first non-whitespace character after the sequence. + ## BUGS The template content is handled by handwritten parsers, that even being well -- cgit v1.2.3-18-g5258