From 9643576209a0c8773d456a1e3e4dc2432970d9b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Vazquez?= Date: Fri, 25 May 2018 17:45:09 -0700 Subject: [PATCH] Bad output by getManualOrsayConfData In orsay if the config.xml contains a tag like 'y' it will output '<_>y' because the '_' is the default string used by xml2js lib to represent the node value. Adding {valueString: '_'} to the js2xmlparser options seems to solve the problem. This is presents in all tizen, orsay and webOs tasks. --- tasks/packager/sectv-orsay.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/packager/sectv-orsay.js b/tasks/packager/sectv-orsay.js index 8ae1c35..07ea2af 100644 --- a/tasks/packager/sectv-orsay.js +++ b/tasks/packager/sectv-orsay.js @@ -323,7 +323,7 @@ function getManualOrsayConfData(platformsData){ for (i=0; i < platformsData.length; i++) { if (platformsData[i].$.name === 'sectv-orsay') { delete platformsData[i].$; - manualOrsayConfData = utils.trim(js2xmlparser('platform',platformsData[i],{declaration : {include : false},attributeString : '$'}).replace(/<(\/?platform)>/igm,'')); + manualOrsayConfData = utils.trim(js2xmlparser('platform',platformsData[i],{declaration : {include : false},attributeString : '$', valueString: '_'}).replace(/<(\/?platform)>/igm,'')); } } }