mirror of
https://github.com/nasa/trick.git
synced 2025-02-21 17:36:42 +00:00
GUIs using sie file die on Windows quotation marks
We already parse the string character by character escaping newlines, tabs, and other special characters. In the case of these quotation marks, we replace them with the ASCII single and double quotes. refs #134
This commit is contained in:
parent
01a8294dd8
commit
634f25bee3
@ -231,6 +231,10 @@ void FieldDescription::parseComment(std::string comment) {
|
||||
case '\r':
|
||||
case '\t':
|
||||
case ' ': if ( ! is_space ) ss << " "; is_space = true ; break;
|
||||
// -110 to -108 (signed char) are the Windows quotation marks. We ASCII-fy them.
|
||||
case -110 : ss << "'" ; break;
|
||||
case -109 : ss << "\\\"" ; break;
|
||||
case -108 : ss << "\\\"" ; break;
|
||||
default: ss << *it; is_space = false ; break;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user