Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion library/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ function parseFile(inputXml) {

//XML Vector end
generatedOutput += '</vector>';
generatedOutput += '\n';

//SVG must contain path(s)
if (pathsParsedCount == 0) {
Expand Down Expand Up @@ -386,7 +387,7 @@ function removeNonNumeric(input) {

function generateAttr(name, val, groupLevel, def, end) {
if (typeof val === "undefined" || val == def) return "";
return INDENT.repeat(groupLevel + 2) + 'android:{0}="{1}"{2}\n'.f(name, val, end ? ' />' : '');
return INDENT.repeat(groupLevel + 1) + 'android:{0}="{1}"{2}\n'.f(name, val, end ? ' />' : '');
}

function generateCompatAttr(name, val, groupLevel, def, end) {
Expand Down