Skip to content

Commit e870527

Browse files
committed
fixed the spacing for the classes and v-model
1 parent c80319a commit e870527

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/right-sidebar/CodeSnippet.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,11 @@ export default {
127127
} else {
128128
nestedString += htmlElementMap[child.text][0];
129129
if (child.class !== "") {
130-
nestedString += " " + "class = " + `"${child.class}"`;
130+
nestedString += " " + "class=" + `"${child.class}"`;
131131
}
132132
if (child.binding !== "") {
133133
if (child.text !== 'img' || child.text !== 'link') {
134-
nestedString += ` v-model = "${child.binding}"`
134+
nestedString += ` v-model="${child.binding}"`
135135
136136
}
137137
}
@@ -164,11 +164,11 @@ export default {
164164
outputStr += htmlElementMap[el.text][0]
165165
//if conditional to check class
166166
if (el.class !== "") {
167-
outputStr += " " + "class = " + `"${el.class}"`;
167+
outputStr += " " + "class=" + `"${el.class}"`;
168168
}
169169
170170
if (el.binding !== "") {
171-
outputStr += ` v-model = "${el.binding}"`
171+
outputStr += ` v-model="${el.binding}"`
172172
}
173173
// add an extra slash at the end for child Components and single tags
174174
if(childComponents.includes(el.text) || el.text === "img" || el.text === "input" || el.text === "link"){

0 commit comments

Comments
 (0)