Skip to content

Commit

Permalink
Merge pull request pugjs#1757 from jadejs/fix-pretty
Browse files Browse the repository at this point in the history
Use default 2-space indentation for all non-string true-y values
  • Loading branch information
ForbesLindesay committed Nov 30, 2014
2 parents 07c4377 + b63effb commit e6c7c1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ var Compiler = module.exports = function Compiler(node, options) {
this.hasCompiledDoctype = false;
this.hasCompiledTag = false;
this.pp = options.pretty || false;
if (this.pp === true) {
if (this.pp && typeof this.pp !== 'string') {
this.pp = ' ';
}
this.debug = false !== options.compileDebug;
Expand Down

0 comments on commit e6c7c1b

Please sign in to comment.