Skip to content

Commit

Permalink
Don't use whitespace as an indent indicator (apache#614)
Browse files Browse the repository at this point in the history
This is extremely confusing if your editor is not configured to clearly distinguish different sorts of whitespce
  • Loading branch information
oliversalzburg authored and raphinesse committed Nov 6, 2019
1 parent a0baeca commit 61a172c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/templates/scripts/cordova/lib/prepare.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ function updateProject (platformConfig, locations) {

/* eslint-disable no-tabs */
// Write out the plist file with the same formatting as Xcode does
var info_contents = plist.build(infoPlist, { indent: ' ', offset: -1 });
var info_contents = plist.build(infoPlist, { indent: '\t', offset: -1 });
/* eslint-enable no-tabs */

info_contents = info_contents.replace(/<string>[\s\r\n]*<\/string>/g, '<string></string>');
Expand Down

0 comments on commit 61a172c

Please sign in to comment.