mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
[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
This commit is contained in:
parent
4771e550d3
commit
5d7e90c2b4
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in a new issue