The target template contains the string <<doc [document] -inline>><<doc [document] -inline>>
, and the source file only contains the word “replacement”. I would expect the Reporting Engine to output “replacementreplacement” as a result. However, it actually outputs “replacement replacement”. A whitespace is being inserted if there is text before the doc tag. My question would be how to prevent the insertion of a whitespace?
public static void TestMethod()
{
var targetDocumentBuilder = new DocumentBuilder();
targetDocumentBuilder.Write("<<doc [document] -inline>><<doc [document] -inline>>");
var sourceDocumentBuilder = new DocumentBuilder();
sourceDocumentBuilder.Write("replacement");
new ReportingEngine().BuildReport(targetDocumentBuilder.Document, sourceDocumentBuilder.Document, "document");
}