Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Correctly replace all tabs with spaces.

Looks like my global flag for the tab replacement was done incorrectly. This commit fixes that.
  • Loading branch information...
commit 7efda27da394d7cb4322d137a57b4212d3bfc98d 1 parent 369c6a9
@onlywei onlywei authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/builder.js
View
2  lib/builder.js
@@ -1478,7 +1478,7 @@ YUI.add('doc-builder', function(Y) {
}
if (typeof self.options.tabspace === 'string') {
- str = str.replace(/\t/, self.options.tabspace, 'g');
+ str = str.replace(/\t/g, self.options.tabspace);
}
opts.meta.fileData = str;
Please sign in to comment.
Something went wrong with that request. Please try again.