Indenting....

From: Date: Tue, 21 May 2002 18:01:47 +0000
Subject: Indenting....
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-4335@lists.php.net to get a copy of this message
Hello! Im completely new to Smarty and was wondering if anybody could enlighten me a bit. Why is it that if i do the following
        {section name=q loop=$z}
        <tr>
        <td> whatever</td>
        </tr>
        {/section}
And then view the source code in my browser it displays it like this
                <tr>
        <td> whatever</td>
        </tr>
Whereas if i do as follows (note the linebreak between section and <tr>)
        {section name=q loop=$z}
        <tr>
        <td> whatever</td>
        </tr>
        {/section}
And view the source code in my browser it will display it as i want
        <tr>
        <td> whatever</td>
        </tr>
How come? I don`t want Smarty to auto indent anything, is there an option for this or is it just me who has this?
Any help would be greatly appreciated. Thanks a lot in advance for your time. Best regards from Vienna, Jürgen

« previous php.smarty.general (#4335) next »