Fix script desc bug in a better way
This commit is contained in:
parent
2230b81257
commit
f03e37602d
|
@ -194,7 +194,7 @@ namespace Filtration.Parser.Tests.Services
|
|||
script.ItemFilterBlocks.Add(block1);
|
||||
script.ItemFilterBlocks.Add(block2);
|
||||
|
||||
var expectedOutput = "# Script edited with Filtration - https://github.com/ben-wallis/Filtration" + Environment.NewLine + Environment.NewLine +
|
||||
var expectedOutput = "# Script edited with Filtration - https://github.com/ben-wallis/Filtration" + Environment.NewLine +
|
||||
"# Test script description" + Environment.NewLine +
|
||||
"# This is a really great script!" + Environment.NewLine +
|
||||
"# Multiple line script descriptions are fun!" + Environment.NewLine +
|
||||
|
@ -228,7 +228,7 @@ namespace Filtration.Parser.Tests.Services
|
|||
};
|
||||
|
||||
var expectedOutput = "# Script edited with Filtration - https://github.com/ben-wallis/Filtration" +
|
||||
Environment.NewLine + Environment.NewLine +
|
||||
Environment.NewLine +
|
||||
"# Test script description" + Environment.NewLine + Environment.NewLine;
|
||||
|
||||
var translator = CreateItemFilterScriptTranslator();
|
||||
|
|
|
@ -234,7 +234,7 @@ namespace Filtration.Parser.Services
|
|||
var outputString = string.Empty;
|
||||
|
||||
outputString += "# Script edited with Filtration - https://github.com/ben-wallis/Filtration" +
|
||||
Environment.NewLine + Environment.NewLine;
|
||||
Environment.NewLine;
|
||||
|
||||
if (script.ItemFilterScriptSettings.BlockGroupsEnabled)
|
||||
{
|
||||
|
@ -251,8 +251,8 @@ namespace Filtration.Parser.Services
|
|||
outputString += "# " + line + Environment.NewLine;
|
||||
}
|
||||
}
|
||||
outputString += Environment.NewLine;
|
||||
}
|
||||
outputString += Environment.NewLine;
|
||||
|
||||
// ReSharper disable once LoopCanBeConvertedToQuery
|
||||
foreach (var block in script.ItemFilterBlocks)
|
||||
|
|
Loading…
Reference in New Issue