Bug 879 - Description/Annotation ending with Slash Causes Problems
- Backslashes actually. The escaping mechanism in the low-level parser was eating leading \ characters when it should not. Very hard bug to find, trivial to fix. - Added unit tests to several components while narrowing this down.
This commit is contained in:
@@ -234,6 +234,7 @@ bool Nibbler::getQuoted (
|
||||
{
|
||||
bool inquote = false;
|
||||
bool inescape = false;
|
||||
char previous = 0;
|
||||
char current = 0;
|
||||
result = "";
|
||||
|
||||
@@ -250,6 +251,7 @@ bool Nibbler::getQuoted (
|
||||
if (current == '\\' && !inescape)
|
||||
{
|
||||
inescape = true;
|
||||
previous = current;
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -270,6 +272,12 @@ bool Nibbler::getQuoted (
|
||||
}
|
||||
else
|
||||
{
|
||||
if (previous)
|
||||
{
|
||||
result += previous;
|
||||
previous = 0;
|
||||
}
|
||||
|
||||
result += current;
|
||||
inescape = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user