Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.10.0, 0.11.0
-
None
-
Any ASCII based system
Description
When \n is entered into a property 'n' rather than LF character is entered into the property value.
The same applies to \r.
An escapement of tab \t is not recognized because the code looks for '\' followed by backspace character (0x08), when it should look for '\' followed by 't'.
In the proposed fix below, starting around line 209 of properties.cpp, I have also refactored the get and test out of the case statements of the switch.
case ELEMENT_ESCAPE:
switch(c)
if (!get(in, c))
finished = true;
break;