From 4df2f7179c12d3a674866bf05e4bd185ac3e2d87 Mon Sep 17 00:00:00 2001 From: Dean Anderson Date: Thu, 27 Sep 2018 18:10:02 -0400 Subject: Fixes for whitespace errors to pass tslint tests --- src/Lang/Cpp/CppDocGen.ts | 19 +++++++++---------- src/test/CppTests/FileDescription.test.ts | 2 +- 2 files changed, 10 insertions(+), 11 deletions(-) (limited to 'src') diff --git a/src/Lang/Cpp/CppDocGen.ts b/src/Lang/Cpp/CppDocGen.ts index 705b72c..c88dd7d 100644 --- a/src/Lang/Cpp/CppDocGen.ts +++ b/src/Lang/Cpp/CppDocGen.ts @@ -108,9 +108,9 @@ export class CppDocGen implements IDocGen { protected getMultiTemplatedString(replace: string[], template: string, param: string[]): string { // FIXME I find this argument order a bit strange. I would probably have template first // For each replace entry, attempt to replace it with the corresponding param in the template - for(var i=0;i { test("custom block", () => { testSetup.cfg.File.fileOrder = ["custom"]; - testSetup.cfg.File.customTag = ["First Line", "{year} Year Line", "{date} Date Line", + testSetup.cfg.File.customTag = ["First Line", "{year} Year Line", "{date} Date Line", "{author} Author Line", "{email} Email Line"]; const result = testSetup.SetLine("").GetResult(); assert.equal("/**\n * First Line\n * " + year + " Year Line\n * " + date + " Date Line\n" + -- cgit v1.2.3