aboutsummaryrefslogtreecommitdiffstats
path: root/man/blogc-template.7.ronn
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2016-01-14 21:43:39 +0100
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2016-01-14 21:43:39 +0100
commit542b1d30cca5d6c17b662438d594a91b864ccc56 (patch)
tree4df74896c0791cba2dfbc2eac323eb6264da1760 /man/blogc-template.7.ronn
parenta8cde98ad6b747142ea1798f00a6b8c11b208709 (diff)
downloadblogc-542b1d30cca5d6c17b662438d594a91b864ccc56.tar.gz
blogc-542b1d30cca5d6c17b662438d594a91b864ccc56.tar.bz2
blogc-542b1d30cca5d6c17b662438d594a91b864ccc56.zip
man: added documentation about whitespace control
Diffstat (limited to 'man/blogc-template.7.ronn')
-rw-r--r--man/blogc-template.7.ronn13
1 files changed, 13 insertions, 0 deletions
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