Skip to content

Commit

Permalink
updating output formatting to make it a bit more pleasing to run
Browse files Browse the repository at this point in the history
  • Loading branch information
enygma committed Jan 12, 2012
1 parent d8c1c0b commit 5fba6b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions impress-gen.php
Expand Up @@ -6,6 +6,8 @@
require_once 'lib/Markdown.php';
require_once 'lib/Cli.php';

echo "###- impress-gen -###\n---------------------\n";

try {
$t = new Lib\Translate();
$c = new Lib\Cli();
Expand All @@ -22,5 +24,6 @@
} catch(\Exception $e) {
echo "ERROR: ".$e->getMessage()."\n\n";
}
echo "done.\n\n";

?>
4 changes: 2 additions & 2 deletions lib/Translate.php
Expand Up @@ -21,7 +21,7 @@ public function parse($dirPath,$options=null)
EOT;
// if the source is set on the command line, override
$dirPath = ($options->getOption('source') !== null) ? $options->getOption('source') : $dirPath;
echo 'Loading from: '.$dirPath."\n\n";
echo 'Loading from : '.$dirPath."\n";

// ensure we can read the directory
if (is_dir($dirPath)) {
Expand Down Expand Up @@ -87,7 +87,7 @@ public function parse($dirPath,$options=null)

// write out to the file
file_put_contents($filePath, $output);
echo "Presentation output in ".$filePath."\n\n";
echo "Presentation output : ".$filePath."\n\n";
}


Expand Down

0 comments on commit 5fba6b5

Please sign in to comment.