Changes required:
As you can see maxdeep and ix need to be setup a little better. No big deal.
function pp() {
this.shift = ['\n']; // array of shifts
this.step = ' ', // 2 spaces
this.maxdeep = 100; // nesting level
var ix = 0;
// initialize array with shifts //
for(ix=0;ix<this.maxdeep;ix++){
this.shift.push(this.shift[ix]+this.step);
}
};
Changes required:
As you can see maxdeep and ix need to be setup a little better. No big deal.
function pp() {
this.shift = ['\n']; // array of shifts
this.step = ' ', // 2 spaces
this.maxdeep = 100; // nesting level
var ix = 0;
};