mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Add constant for escaped <
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
// ----------------------------------------------------------------------------- : Includes
|
||||
|
||||
#include <util/prec.hpp>
|
||||
#include <util/tagged_string.hpp>
|
||||
#include <script/value.hpp>
|
||||
#include <script/to_value.hpp>
|
||||
#include <script/context.hpp>
|
||||
@@ -305,7 +306,7 @@ String quote_string(String const& str) {
|
||||
out += _('"');
|
||||
FOR_EACH_CONST(c, str) {
|
||||
if (c == _('"') || c == _('\\')) { out += _('\\'); out += c; }
|
||||
else if (c == _('\1')) out += _("\\<");
|
||||
else if (c == ESCAPED_LANGLE) out += _("\\<");
|
||||
else if (c == _('\n')) out += _("\\n");
|
||||
else if (c == _('\r')) out += _("\\r");
|
||||
else if (c == _('\t')) out += _("\\t");
|
||||
|
||||
Reference in New Issue
Block a user