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

Empty strings treated as valid property values #142

Open
karger opened this issue Aug 21, 2015 · 1 comment
Open

Empty strings treated as valid property values #142

karger opened this issue Aug 21, 2015 · 1 comment
Labels

Comments

@karger
Copy link
Member

karger commented Aug 21, 2015

When a google spreadsheet import reports an empty string in a cell, that empty string is assigned as the value of the corresponding item property in exhibit. This causes tests like if-exists to return true. It seems more intuitive and consistent for an empty string to be treated as a null, so the corresponding property is taken to be not defined on the given item.

@karger karger added the bug label Aug 21, 2015
@white-gecko
Copy link

Alternatively it would be good to have some if-empty unfctionality in http://www.simile-widgets.org/wiki/Exhibit/Conditional_content

I've also tried it with:

<div ex:select=".key">
      <div ex:case="">not available</div>
      <div ex:content=".key"></div>
</div>

which also always ends up in the default case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants