Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: prevents div elements from being self-closing tags #54

Merged
Merged
Changes from 1 commit
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
Prev Previous commit
fix: remove orphan quotation mark and space from spacing div
  • Loading branch information
DaleWebb committed May 2, 2022
commit 169cf19cd21c45f674eb06067fd7ea132d1d2b58
2 changes: 1 addition & 1 deletion src/html/htmlMain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ const addSpacingIfNeeded = (
const style = new HtmlDefaultBuilder(node, false, isJsx).build(
formatWithJSX(wh, isJsx, node.parent.itemSpacing)
);
return isJsx ? `\n<div${style}/>` : `\n<div ${style}"></div>`;
return isJsx ? `\n<div${style}/>` : `\n<div${style}></div>`;
}
}
return "";
Expand Down