Skip to content

Improve Example Table display of whitespace strings #262

Closed

Description

@matt-jenner

Hi Guys, great tool, I've been using this via Specify for a little while now and I've noticed what I think might be considered a mild usability bug or improvement with the display of whitespace and empty strings in the example tables in reports (this was pointed out by my PM).

Currently if I do a typical argument test with a set of null , empty and whitespace example strings as a parameter we would see the following:

  • some string (just to show normal string behaviour)
  • 'null'

This means there's no simple way to differentiate between an empty string and whitespace examples.

I would propose that it if the type is string, it does a quick check for an empty string, or whitespace and if-so wraps in single quotes, then you would read it as:

  • some string (again, just to show normal string behaviour)
  • 'null'
  • ''
  • ' '

This way you clearly see the difference in the examples. I've implemented this locally but I wanted to know your thoughts on this change before I raise a PR in-case you have some changes or ideas. Thanks.

Activity

  1. SonOfSardaar commented on Oct 26, 2025

    @SonOfSardaar
    Contributor

    @matt-jenner could you please provide a test case example with your expected behaviour

  2. added
    need-more-infoNeeds more information or there a pending questions that need answering.
    on Oct 26, 2025
  3. SonOfSardaar commented on May 30, 2026

    @SonOfSardaar
    Contributor

    fixed by #305

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    need-more-infoNeeds more information or there a pending questions that need answering.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions