btwael / mammouth

Unfancy PHP
http://mammouth.boutglay.com
MIT License
214 stars 22 forks source link

no indentation in compiled code #40

Closed mlarese closed 8 years ago

mlarese commented 10 years ago

having some problems compiling my source i tryed in "Try mamouth" page to copy some example code

{{
abstract class AbstractClass
  abstract protected func getValue()
  abstract protected func prefixValue(prefix)

  public func printOut ->
    echo this.getValue() <-> "\n"
}}

become

<?php
abstract class AbstractClass {
abstract protected function getValue();
abstract protected function prefixValue($prefix);
public function printOut() { echo $this->getValue()."\n"; }
}
?>

as you can see the code is not well formatted (no indentation)

any help PS I'm using the last release 2.0.1

btwael commented 10 years ago

The current mammouth version doesn't format ouput (PHP), because the result file should be lightweight (indent take more size), however I will work to add an option to enable identation at output (PHP) tnx you

mlarese commented 10 years ago

thx for your replay.