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: fix rendered code tag having trailing space #20

Merged
merged 1 commit into from
Mar 23, 2024

Conversation

godnondsilva
Copy link
Contributor

Description

In the below test case, there is a trailing space in the tag with no user-defined props.

export function Baz({ children, ...props }: BazProps) {
  return (
    <p {...props} className="Baz" >   <<<< Notice this space
      {children}
    </p>
  )
}

The same is true when we create components without user-defined props, the output is similar.

Checklist

  • Remove trailing space.
  • Updated test case definition.

@typicode
Copy link
Owner

Thank you!

@typicode typicode merged commit 57501e6 into typicode:main Mar 23, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants