added spaces to labels per John

This commit is contained in:
Kevin Darby committed 2020-01-27 11:13:56 -05:00
1 parent a307a09cb7
commit 8687ef64f9
2 files changed
+7 -2

No files matched your search

+1
View File
@@ -120,6 +120,7 @@
"fix",
"--export_atdl_path",
"./atdl/",
"--export_single_file",
],
"cwd": "${workspaceRoot}/build/Debug/bin/net471/",
"stopAtEntry": false,
+6 -2
View File
@@ -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)