-
Notifications
You must be signed in to change notification settings - Fork 103
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
Trim whitespace from uri element text #365
Conversation
This copies the whitespace test from gazebosim#359 but takes a narrower approach by only trimming whitespace from `<uri>` element text. Closes gazebosim#322. Signed-off-by: Steve Peters <scpeters@openrobotics.org>
Codecov Report
@@ Coverage Diff @@
## sdf10 #365 +/- ##
==========================================
+ Coverage 87.35% 87.36% +0.01%
==========================================
Files 60 60
Lines 9207 9215 +8
==========================================
+ Hits 8043 8051 +8
Misses 1164 1164
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only trimming whitespace from element text.
While working on an ign-sensors
PR I needed the whitespace fix within a <topic>
field: gazebosim/gz-sensors#33 (comment)
I think it's not safe to assume that only URIs need the fix. I wouldn't be surprised to see some of these around, for example:
<name>
my_robot
</name>
clicked the wrong button |
I hear you too, the other PR should affect performance. My main concern at the moment is to keep the behavior backward-compatible. Maybe there's a less invasive way of doing it. Extending your approach to all string values, maybe? I haven't checked how this affects elements like pose... Does this work, for example?
|
I wrote that but then thought better of it but clicked "close with comment" by accident. I've since deleted it. I'm still thinking it through. |
closing in favor of #359 |
This copies the whitespace test from #359
but takes a narrower approach by only trimming
whitespace from
<uri>
element text.Closes #322.
Signed-off-by: Steve Peters scpeters@openrobotics.org