1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

Minor formatting / whitespace

This commit is contained in:
Matt Wildig 2013-04-04 01:51:43 +01:00 committed by Norman Clarke
parent 510af3bed8
commit 1a700cec5e

View file

@ -186,7 +186,6 @@ is compiled to:
## HTML Elements ## HTML Elements
### Element Name: `%` ### Element Name: `%`
The percent character is placed at the beginning of a line. It's followed The percent character is placed at the beginning of a line. It's followed
@ -621,7 +620,6 @@ is compiled to:
Hello! Hello!
</div> </div>
## Doctype: `!!!` ## Doctype: `!!!`
When describing HTML documents with Haml, you can have a document type or XML When describing HTML documents with Haml, you can have a document type or XML
@ -1119,7 +1117,6 @@ option} to control when CDATA tags are added.
Parses the filtered text with [Less](http://lesscss.org/) to produce CSS output. Parses the filtered text with [Less](http://lesscss.org/) to produce CSS output.
This filter is implemented using Tilt. This filter is implemented using Tilt.
{#markdown-filter} {#markdown-filter}
### `:markdown` ### `:markdown`
Parses the filtered text with Parses the filtered text with
@ -1232,14 +1229,15 @@ Sometimes you don't want Haml to indent all your text.
For example, tags like `pre` and `textarea` are whitespace-sensitive; For example, tags like `pre` and `textarea` are whitespace-sensitive;
indenting the text makes them render wrong. indenting the text makes them render wrong.
Haml deals with this by "preserving" newlines before they're put into the document -- Haml deals with this by "preserving" newlines before they're put into the
converting them to the HTML whitespace escape code, `&#x000A;`. document -- converting them to the HTML whitespace escape code, `&#x000A;`. Then
Then Haml won't try to re-format the indentation. Haml won't try to re-format the indentation.
Literal `textarea` and `pre` tags automatically preserve content given through `=`. Literal `textarea` and `pre` tags automatically preserve content given through
Dynamically-generated `textarea`s and `pre`s can't be preserved automatically, `=`. Dynamically-generated `textarea`s and `pre`s can't be preserved
and so should be passed through {Haml::Helpers#find\_and\_preserve} or the [`~` command](#tilde), automatically, and so should be passed through
which has the same effect. {Haml::Helpers#find\_and\_preserve} or the [`~` command](#tilde), which has the
same effect.
Blocks of literal text can be preserved using the [`:preserve` filter](#preserve-filter). Blocks of literal text can be preserved using the [`:preserve` filter](#preserve-filter).