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

Bug: obj update strips newlines #279

Merged
merged 1 commit into from
Mar 15, 2021
Merged

Conversation

joshmoore
Copy link
Member

The regex used for capturing the string after the
= symbol currently stops at the first newline. This
passes re flags to allow capturing the multiline.

More tests are needed.

see: https://forum.image.sc/t/line-breaks-in-descriptions-via-cli/49236/4

The regex used for capturing the string after the
= symbol currently stops at the first newline. This
passes `re` flags to allow capturing the multiline.

More tests are needed.

see: https://forum.image.sc/t/line-breaks-in-descriptions-via-cli/49236/4
@imagesc-bot
Copy link

This pull request has been mentioned on Image.sc Forum. There might be relevant details there:

https://forum.image.sc/t/line-breaks-in-descriptions-via-cli/49236/6

joshmoore added a commit to joshmoore/openmicroscopy that referenced this pull request Feb 24, 2021
@sbesson
Copy link
Member

sbesson commented Feb 26, 2021

Tested the two commands suggested in ome/openmicroscopy#6265 against a CI server with this fix included. Everything works as expected and multi-line descriptions render as multi-line.

The omero obj update Dataset:123 description=$'A\nB' syntax is not very intuitive so I don't know whether this should be captured in the help or whether the expectation is simply that someone trying to update a field with the CLI will naturally use the second form.

Otherwise LGTM

@joshmoore
Copy link
Member Author

Yeah, it'll be dependent on someone's shell, etc etc.

@will-moore
Copy link
Member

Tested locally. 👍

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.

4 participants