generator: auto escape string constants

This commit is contained in:
Stephan Sundermann 2013-10-09 18:51:38 +02:00 committed by Andrés G. Aragoneses
parent 8b101d5525
commit e031a4ff18

View File

@ -58,7 +58,13 @@ namespace GtkSharp.Generation
{
StreamWriter sw = gen_info.Writer;
sw.WriteLine ("{0}public const {1} {2} = {3}{4}{3};", indent, ConstType, Name, IsString ? "\"": String.Empty, value);
sw.WriteLine ("{0}public const {1} {2} = {3}{4}{5};",
indent,
ConstType,
Name,
IsString ? "@\"": String.Empty,
value,
IsString ? "\"": String.Empty);
}
}
}