From c2c95a4871d4b8b4e93ab41620c8d6e36262b63c Mon Sep 17 00:00:00 2001 From: pantor Date: Fri, 10 Apr 2020 15:49:16 +0200 Subject: [PATCH] fix readme for trim and lstrip --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fdce138..63babef 100644 --- a/README.md +++ b/README.md @@ -247,7 +247,7 @@ render("{{ isArray(guests) }}", data); // "true" ### Whitespace Control -In the default configuration, no whitespace is removed while rendering the file. To support a more readable template style, you can configure the environment to control whitespaces before and after a statement automatically. While enabling `set_trim` removes the first newline after a statement, `set_lstrip` strips tabs and spaces from the beginning of a line to the start of a block. +In the default configuration, no whitespace is removed while rendering the file. To support a more readable template style, you can configure the environment to control whitespaces before and after a statement automatically. While enabling `set_trim_blocks` removes the first newline after a statement, `set_lstrip_blocks` strips tabs and spaces from the beginning of a line to the start of a block. ```c++ Environment env; @@ -255,7 +255,7 @@ env.set_trim_blocks(true); env.set_lstrip_blocks(true); ``` -With both `trim` and `lstrip` enabled, you can put statements on their own lines. +With both `trim_blocks` and `lstrip_blocks` enabled, you can put statements on their own lines. ### Callbacks