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:
IsIso88591Compatible() was including one of the control character ranges, but not the other. For symmetry/simplicity let's make the range 0x00 .. 0xFF.
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:
IsIso88591Compatible()
was including one of the control character ranges, but not the other. For symmetry/simplicity let's make the range0x00 .. 0xFF
.