Skip to content

Fix rendering of boolean attributes - #2

Merged
alysbrooks merged 1 commit into
lambdaisland:mainfrom
daitaas:fix-boolean-attributes
Mar 20, 2023
Merged

alysbrooks merged 1 commit into
lambdaisland:mainfrom
daitaas:fix-boolean-attributes

Conversation

@dmcgillen

Copy link
Copy Markdown
Contributor

When boolean attributes are false they should
be removed as the presence of attribute=false
is interpreted as the attribute being set.

There is a PR against enlive that does exactly the same thing but it has never been merged: cgrand/enlive#107

@alysbrooks alysbrooks left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good, just one small change.

Comment thread CHANGELOG.md Outdated

## Changed

# 0.0.5

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
# 0.0.5

You don't need to manually add the version string, our release tooling does that automatically.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks, I thought I was doing it wrong. I think I've got it right this time (I had "## Fixed" twice after removing the version string so also removed that)?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

All you need to do is add a bullet with your changes, so it's correct now.

Comment thread CHANGELOG.md Outdated

## Fixed

- Correctly handle boolean attributes (false values are removed)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
- Correctly handle boolean attributes (false values are removed)
- Correctly handle boolean attributes (false values are removed rather than being set to "false")

Tiny suggestion.

@dmcgillen dmcgillen Mar 18, 2023

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good call - done.

When boolean attributes are false they should
be removed as the presence of attribute=false
is interpreted as the attribute being set.
@alysbrooks
alysbrooks merged commit bf7acc4 into lambdaisland:main Mar 20, 2023
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.

2 participants