Skip to content

Conversation

thomashoneyman
Copy link
Member

No description provided.

@@ -47,7 +47,7 @@ render getTagType renderAttrs renderWidget = go
as = renderAttrs attrs
as' = maybe as (\(Namespace ns) -> "xmlns=\"" <> escape ns <> "\"" <> if S.null as then "" else " " <> as) maybeNamespace
in
"<" <> name <> (if S.null as then "" else " ") <> as <>
"<" <> name <> (if S.null as then "" else " ") <> as' <>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as' was previously unused -- presumably it was supposed to be used here?

@thomashoneyman thomashoneyman requested a review from garyb May 5, 2021 22:50
@garyb
Copy link
Member

garyb commented May 20, 2021

Changes look good to me! Should we switch this to GH actions too? Especially since Travis seems to have done something weird with these builds.

…attributes. (#11)

Due to a mixup with primed and non-primed variable names (`as` and
`as'`), if you have an element with a namespace but no attributes,
such as `SVG.g [] [ ... ]` it was rendering as: `<gxmlns="..."`.

This commit fixes that behaviour.

Co-authored-by: Kris Jenkins <kjenkins@confluent.io>
@thomashoneyman thomashoneyman merged commit 7f0b52f into master Nov 5, 2021
@thomashoneyman thomashoneyman deleted the 0.14 branch November 5, 2021 12:24
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.

3 participants