From 8687ef64f9683ca94523c4ac80f182e1df4e3fbd Mon Sep 17 00:00:00 2001 From: Kevin Darby Date: Mon, 27 Jan 2020 11:13:56 -0500 Subject: [PATCH] added spaces to labels per John --- .vscode/launch.json | 1 + src/client/spark_fix/atdl/ATDL.cs | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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)