diff --git a/.vscode/launch.json b/.vscode/launch.json index b115c1135..bc23a48f3 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -120,6 +120,7 @@ "fix", "--export_atdl_path", "./atdl/", + "--export_single_file", ], "cwd": "${workspaceRoot}/build/Debug/bin/net471/", "stopAtEntry": false, diff --git a/src/client/spark_fix/atdl/ATDL.cs b/src/client/spark_fix/atdl/ATDL.cs index 92f3d6111..1c4a5a294 100644 --- a/src/client/spark_fix/atdl/ATDL.cs +++ b/src/client/spark_fix/atdl/ATDL.cs @@ -300,9 +300,13 @@ namespace bts.fix }); } - static string title_case(string title) + static string title_case(string title, bool insert_spaces = true) { - return new CultureInfo("en").TextInfo.ToTitleCase(title.ToLower().Replace("_", " ")).Replace(" ", ""); + var s = new CultureInfo("en").TextInfo.ToTitleCase(title.ToLower().Replace("_", " ")); + if(!insert_spaces) + return s.Replace(" ", ""); + else + return s; } static void visit_layout(XmlWriter w, IMessage imsg)