We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suppose we have the following template:
%body - $options = [ 'One', 'Two', 'Three', 'Four', 'Five' ] - if (count($options)) %ul - foreach ($options as $item) %li= $item - else %div No options!
Now it generates well-indented PHP code like this:
<body> <?php $options = [ 'One', 'Two', 'Three', 'Four', 'Five' ]; ?> <?php if (count($options)) { ?> <ul> <?php foreach ($options as $item) { ?> <li><?php echo htmlspecialchars($item,ENT_QUOTES,'UTF-8'); ?></li> <?php } ?> </ul> <?php } else { ?> <div>No options!</div> <?php } ?> </body>
But in fact the output HTML code has some redundant indentation:
<body> <ul> <li>One</li> <li>Two</li> <li>Three</li> <li>Four</li> <li>Five</li> </ul> </body>
It would be nice to have something like this:
This HTML code is much more pretty :)
The text was updated successfully, but these errors were encountered:
Remove redundant indentation inside Run block
71b4fe0
To the issue arnaud-lb#76 "Redundant indentation inside Run block"
No branches or pull requests
Suppose we have the following template:
Now it generates well-indented PHP code like this:
But in fact the output HTML code has some redundant indentation:
It would be nice to have something like this:
This HTML code is much more pretty :)
The text was updated successfully, but these errors were encountered: