Page 1 of 1

Creating a label puts a space in front

Posted: Sun Nov 02, 2014 9:25 am
by cv27
When I create label and set its initial value, DemoPad already has a space in the value input field and my value is appended to that space. The net result is that the label value is prefixed with a blank and when, for example, using this label to compose a GET request then the command will go out but be rejected or wrongly interpreted at the destination.

It's not obvious to spot that leading space and I've been caught too many times in debug mode only to find this anomaly.

Unless there's some logic behind this, I would suggest removing that leading space.

Re: Creating a label puts a space in front

Posted: Wed Dec 03, 2014 12:35 am
by cv27
DemoPad,

What's your position on this?

Re: Creating a label puts a space in front

Posted: Wed Dec 03, 2014 12:09 pm
by DemoPad
We've put it on the dev list to either remove, or change the default value to something more obvious.

Re: Creating a label puts a space in front

Posted: Wed Dec 03, 2014 6:56 pm
by cv27
DemoPad wrote:We've put it on the dev list to either remove, or change the default value to something more obvious.
I would welcome any change, but I have to ask: why would there be a default value for a label? There isn't for a number. Why not have null as the default for a label?

No big deal, just help me get out of the 'space' trap.

Re: Creating a label puts a space in front

Posted: Tue Dec 09, 2014 4:44 pm
by DemoPad
All numbers do have a default value. It is just the way the app was programmed, it requires some value to be set initially.