Creating a label puts a space in front

General Discussion on DemoPad or related products
Post Reply
cv27
Posts: 233
Joined: Sat Nov 24, 2012 10:15 pm
Location: Montréal, QC, Canada

Creating a label puts a space in front

Post by cv27 » Sun Nov 02, 2014 9:25 am

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.

cv27
Posts: 233
Joined: Sat Nov 24, 2012 10:15 pm
Location: Montréal, QC, Canada

Re: Creating a label puts a space in front

Post by cv27 » Wed Dec 03, 2014 12:35 am

DemoPad,

What's your position on this?

User avatar
DemoPad
Site Admin
Posts: 770
Joined: Thu Jun 14, 2012 10:46 am
Contact:

Re: Creating a label puts a space in front

Post by DemoPad » Wed Dec 03, 2014 12:09 pm

We've put it on the dev list to either remove, or change the default value to something more obvious.

cv27
Posts: 233
Joined: Sat Nov 24, 2012 10:15 pm
Location: Montréal, QC, Canada

Re: Creating a label puts a space in front

Post by cv27 » Wed Dec 03, 2014 6:56 pm

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.

User avatar
DemoPad
Site Admin
Posts: 770
Joined: Thu Jun 14, 2012 10:46 am
Contact:

Re: Creating a label puts a space in front

Post by DemoPad » Tue Dec 09, 2014 4:44 pm

All numbers do have a default value. It is just the way the app was programmed, it requires some value to be set initially.

Post Reply