OctopusDeploy / Octostache

| Public | The variable substitution syntax for Octopus Deploy
Other
5 stars 24 forks source link

Preserve leading spaces in property values #44

Closed thedewi closed 4 years ago

thedewi commented 4 years ago

There is a special case when a property value begins with a space - it gets trimmed along with subsequent spaces.

The octostache expansion may not be producing the first character of the value, but just in case it is, I think we should escape the first character if it's a space.

This would have been simpler if we escaped all spaces, but I think that would produce some unfriendly looking outputs.

Also Includes a nit: