generator: auto escape string constants
This commit is contained in:
parent
8b101d5525
commit
e031a4ff18
1 changed files with 7 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue