From 5d7e90c2b427898406d7189566a25b1e113fd17d Mon Sep 17 00:00:00 2001 From: Nathan Weizenbaum Date: Wed, 28 Oct 2009 23:10:56 -0700 Subject: [PATCH] [Haml] Fix the reference w.r.t. exactly how pres and textareas auto-preserve. It's not actually the case that they preserve nested content; this would be very difficult to do in a general way. They actually only generate content given with =. Closes gh-46 --- doc-src/HAML_REFERENCE.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc-src/HAML_REFERENCE.md b/doc-src/HAML_REFERENCE.md index c680f81a..15f45823 100644 --- a/doc-src/HAML_REFERENCE.md +++ b/doc-src/HAML_REFERENCE.md @@ -1155,8 +1155,8 @@ Haml deals with this by "preserving" newlines before they're put into the docume converting them to the XHTML whitespace escape code, ` `. Then Haml won't try to re-format the indentation. -Literal `textarea` and `pre` tags automatically preserve their content. -Dynamically can't be caught automatically, +Literal `textarea` and `pre` tags automatically preserve content given through `=`. +Dynamically-generated `textarea`s and `pre`s can't be preserved automatically, and so should be passed through {Haml::Helpers#find\_and\_preserve} or the [`~` command](#tilde), which has the same effect.