foundeo / toscript

Converts Tag based CFML to CFML Script
GNU General Public License v3.0
20 stars 9 forks source link

Fix indentation to cfset, add cfthread, cftimer, cftrace #37

Open jordanclark opened 5 years ago

jordanclark commented 5 years ago

This pull will re-indent multiline cfset content. It was necessary to pass the toscript object to the converter and add a public method to get the current ident level.

For example the tags:

<cffunction>
    <cfset var foo = {
        success = false
    ,   something = ""
    }>
</cffunction>

Would previously result in:

function {
    foo = {
    success = false
,   something = ""
};
}

After this pull it will be:

function {
    foo = {
        success = false
    ,   something = ""
    };
}