Skip to content

Commit 3fe1f16

Browse files
jigarxpchdavis0917dwejikimlindenyoung
committed
fixed template formatting in exportmenu
Co-authored-by: chdavis0917 <[email protected]> Co-authored-by: Ji Kim <[email protected]> Co-authored-by: lindenyoung <[email protected]>
1 parent a222860 commit 3fe1f16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/nav-buttons/ExportMenu.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,14 +418,14 @@ const writeTemplate = (componentName, children, routes) => {
418418
let childNameClass = componentMap.value[childName].htmlAttributes.class;
419419
let childNameClassFullStr =
420420
childNameClass === "" ? "" : ` class = '${childNameClass}'`;
421-
routeStr += ` <${childName}${childNameClassFullStr}></${childName}>`;
421+
routeStr += ` <${childName}${childNameClassFullStr}></${childName}>\n`;
422422
});
423423
if (compClass !== "" && compID !== "") {
424424
return `<template>\n <div id = "${compID}" class = "${compClass}">\n${templateTagStr}${routeStr} \n\t</div>\n</template>`;
425425
} else if (compClass !== "" && compID === "") {
426426
return `<template>\n <div class = "${compClass}">\n${templateTagStr}${routeStr} \n\t</div>\n</template>`;
427427
} else if (compClass === "" && compID !== "") {
428-
return `<template>\n <div id = "${compID}">\n${templateTagStr}${routeStr} </div>\n</template>`;
428+
return `<template>\n <div id = "${compID}">\n${templateTagStr}${routeStr} \n\t</div>\n</template>`;
429429
} else {
430430
return `<template>\n <div>\n${str}${templateTagStr}${routeStr} </div>\n</template>`;
431431
}

0 commit comments

Comments
 (0)