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

Remove Unicode quotes from help text #373

Merged
merged 1 commit into from Mar 16, 2016

Conversation

ssweeny
Copy link
Contributor

@ssweeny ssweeny commented Mar 11, 2016

Help text has Unicode quotes in a few places, which breaks help output as noted in https://bugs.launchpad.net/snapcraft/+bug/1555733. This change replaces them with ASCII quotes

@snappy-m-o
Copy link

Can one of the admins verify this patch?

2 similar comments
@snappy-m-o
Copy link

Can one of the admins verify this patch?

@snappy-m-o
Copy link

Can one of the admins verify this patch?

@kyrofa
Copy link
Contributor

kyrofa commented Mar 11, 2016

@snappy-m-o you're a bit over-zealous. @ssweeny ugh, thank you for tracking those down! This looks good.

@kyrofa
Copy link
Contributor

kyrofa commented Mar 11, 2016

I wonder if we can come up with a test that would prevent unicode characters from sneaking into the help text in the future?

@ssweeny
Copy link
Contributor Author

ssweeny commented Mar 11, 2016

Have a python script try to print out all the module help text in the source tree? 😉

@kyrofa
Copy link
Contributor

kyrofa commented Mar 11, 2016

Ah, let me rephrase.

Hey @ssweeny, mind adding a test to this PR to make sure unicode characters can't sneak back into the help text?

@ssweeny
Copy link
Contributor Author

ssweeny commented Mar 11, 2016

@kyrofa yeah I can give it a shot this weekend.

@sergiusens
Copy link
Collaborator

👍

@snappy-m-o
Copy link

Can one of the admins verify this patch?

2 similar comments
@snappy-m-o
Copy link

Can one of the admins verify this patch?

@snappy-m-o
Copy link

Can one of the admins verify this patch?

@come-maiz
Copy link
Contributor

OK to test

@come-maiz
Copy link
Contributor

I'm not sure why the three comments. We have to jobs, so it might make sense to have two comments. Three is jjust nonsense. Instead of two jobs we could have one job that triggers these two, we will be checking into it now that we need a workflow plugin for snappy.

@kyrofa
Copy link
Contributor

kyrofa commented Mar 15, 2016

Excellent job @ssweeny, thank you! Please squash up, then I'm good with this 👍 .

@kyrofa
Copy link
Contributor

kyrofa commented Mar 15, 2016

@ElOpio autopkgtest "No test results found" = "Success" ?

@ssweeny ssweeny force-pushed the badunicode branch 2 times, most recently from aa4b3c2 to 0e742e4 Compare March 15, 2016 14:02
Help text has Unicode quotes in a few places, which breaks help output.
This change replaces them with ASCII quotes

Also add a test which checks the output of "snapcraft --help",
"snapcraft help topics", "snapcraft help sources", "snapcraft help
plugins" and "snapcraft help <PLUGIN>" for each plugin to make sure they
don't contain non-ASCII characters which would break the help output
when run normally

LP: #1555733
@ssweeny
Copy link
Contributor Author

ssweeny commented Mar 15, 2016

As best I can tell the examples test failed due to a bad download. Is there a way to re-run it?

@come-maiz
Copy link
Contributor

retest this please

@come-maiz
Copy link
Contributor

@kyrofa I'm not sure what to collect as results of the autopkgtest. I'll check if I can change the message.

@sergiusens
Copy link
Collaborator

This is good as is; landing

sergiusens added a commit that referenced this pull request Mar 16, 2016
Remove Unicode quotes from help text
@sergiusens sergiusens merged commit 10855c5 into canonical:master Mar 16, 2016
smoser pushed a commit to smoser/snapcraft that referenced this pull request Sep 14, 2016
kalikiana pushed a commit to kalikiana/snapcraft that referenced this pull request Apr 6, 2017
Remove Unicode quotes from help text
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.

None yet

5 participants