Skip to content

Conversation

@dmcgillen
Copy link
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

Copy link
Member

@alysbrooks alysbrooks left a comment

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.

CHANGELOG.md Outdated

## Changed

# 0.0.5
Copy link
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
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
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.

CHANGELOG.md Outdated

## Fixed

- Correctly handle boolean attributes (false values are removed)
Copy link
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.

Copy link
Contributor Author

@dmcgillen dmcgillen Mar 18, 2023

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