From 580f2663c2e81ebf07439d9d47deba5bf244b8d9 Mon Sep 17 00:00:00 2001 From: Jordan Yee Date: Mon, 3 Oct 2016 01:18:47 -0400 Subject: [PATCH 1/2] fix(update-config): Update util to build XML with 4-space wide tabs --- src/utils/update-config.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/utils/update-config.js b/src/utils/update-config.js index ef5332d..e4caa1c 100644 --- a/src/utils/update-config.js +++ b/src/utils/update-config.js @@ -29,7 +29,13 @@ const parseXML = function(xmlPath) { }; const saveXML = function(json, xmlPath) { - const builder = new xml2js.Builder(); + const builder = new xml2js.Builder({ + renderOpts: { + 'pretty': true, + 'indent': ' ', + 'newline': '\n' + } + }); const xml = builder.buildObject(json); // Add missing trailing newline From b88115f305e1fb7ea44d248a58bbc9d24d7ca958 Mon Sep 17 00:00:00 2001 From: Jordan Yee Date: Mon, 3 Oct 2016 01:19:21 -0400 Subject: [PATCH 2/2] test(update-config): Update fixtures and expectations to use 4-space wide tabs --- .../android-platform-node-expected.xml | 46 +++++++++---------- .../config.xml/android-platform-node.xml | 40 ++++++++-------- .../fixtures/config.xml/ios-platform-node.xml | 38 +++++++-------- .../no-and-ios-platform-node-expected.xml | 40 ++++++++-------- .../fixtures/config.xml/no-platform-nodes.xml | 34 +++++++------- 5 files changed, 99 insertions(+), 99 deletions(-) diff --git a/node-tests/fixtures/config.xml/android-platform-node-expected.xml b/node-tests/fixtures/config.xml/android-platform-node-expected.xml index 44903b5..7e02a1e 100644 --- a/node-tests/fixtures/config.xml/android-platform-node-expected.xml +++ b/node-tests/fixtures/config.xml/android-platform-node-expected.xml @@ -1,26 +1,26 @@ - emberCordovaExample - - A sample Apache Cordova application that responds to the deviceready event. - - - Apache Cordova Team - - - - - - - - - - - - - - - - - + emberCordovaExample + + A sample Apache Cordova application that responds to the deviceready event. + + + Apache Cordova Team + + + + + + + + + + + + + + + + + diff --git a/node-tests/fixtures/config.xml/android-platform-node.xml b/node-tests/fixtures/config.xml/android-platform-node.xml index b77133c..936a148 100644 --- a/node-tests/fixtures/config.xml/android-platform-node.xml +++ b/node-tests/fixtures/config.xml/android-platform-node.xml @@ -1,23 +1,23 @@ - emberCordovaExample - - A sample Apache Cordova application that responds to the deviceready event. - - - Apache Cordova Team - - - - - - - - - - - - - - + emberCordovaExample + + A sample Apache Cordova application that responds to the deviceready event. + + + Apache Cordova Team + + + + + + + + + + + + + + diff --git a/node-tests/fixtures/config.xml/ios-platform-node.xml b/node-tests/fixtures/config.xml/ios-platform-node.xml index 6368ef4..9a90483 100644 --- a/node-tests/fixtures/config.xml/ios-platform-node.xml +++ b/node-tests/fixtures/config.xml/ios-platform-node.xml @@ -1,22 +1,22 @@ - emberCordovaExample - - A sample Apache Cordova application that responds to the deviceready event. - - - Apache Cordova Team - - - - - - - - - - - - - + emberCordovaExample + + A sample Apache Cordova application that responds to the deviceready event. + + + Apache Cordova Team + + + + + + + + + + + + + diff --git a/node-tests/fixtures/config.xml/no-and-ios-platform-node-expected.xml b/node-tests/fixtures/config.xml/no-and-ios-platform-node-expected.xml index 5b3e072..eecc4db 100644 --- a/node-tests/fixtures/config.xml/no-and-ios-platform-node-expected.xml +++ b/node-tests/fixtures/config.xml/no-and-ios-platform-node-expected.xml @@ -1,23 +1,23 @@ - emberCordovaExample - - A sample Apache Cordova application that responds to the deviceready event. - - - Apache Cordova Team - - - - - - - - - - - - - - + emberCordovaExample + + A sample Apache Cordova application that responds to the deviceready event. + + + Apache Cordova Team + + + + + + + + + + + + + + diff --git a/node-tests/fixtures/config.xml/no-platform-nodes.xml b/node-tests/fixtures/config.xml/no-platform-nodes.xml index 2d39d63..f441b10 100644 --- a/node-tests/fixtures/config.xml/no-platform-nodes.xml +++ b/node-tests/fixtures/config.xml/no-platform-nodes.xml @@ -1,20 +1,20 @@ - emberCordovaExample - - A sample Apache Cordova application that responds to the deviceready event. - - - Apache Cordova Team - - - - - - - - - - - + emberCordovaExample + + A sample Apache Cordova application that responds to the deviceready event. + + + Apache Cordova Team + + + + + + + + + + +