From 0521933c99754fe18959f22fc77fe594f35c92d5 Mon Sep 17 00:00:00 2001 From: Patrick Steele-Idem Date: Wed, 3 Aug 2016 12:23:33 -0600 Subject: [PATCH] Updated docs to clarify whitespace removal for nested text --- docs/language-guide.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/language-guide.md b/docs/language-guide.md index 3e8d9d7986..2aa5028230 100644 --- a/docs/language-guide.md +++ b/docs/language-guide.md @@ -782,6 +782,8 @@ __Option 2)__ Disable whitespace removal using the `marko-preserve-whitespace` a ``` +NOTE: When whitespace preservation is enabled, whitespace will be preserved for text at any level below the tag that the `marko-preserve-whitespace` attribute is attached to. + __Option 3)__ Disable _all_ whitespace removal by changing a compiler option ```javascript @@ -800,6 +802,8 @@ Adding the `"preserve-whitespace": true` property to a tag definition will resul } ``` +NOTE: When whitespace preservation is enabled, whitespace will be preserved for text at any level below the tag. + # Helpers Since Marko template files compile into CommonJS modules, any Node.js module can be "imported" into a template for use as a helper module. For example, given the following helper module: