String format firstCap not working in combination with html switch

Hi,
I noticed that the String format ‘firstCap’ does not seem to work when it is used in combination with HTML formatting. A minimal code example looks like this:

var doc = new Document();
var b = new DocumentBuilder(doc);
b.Writeln("Expected: Bold Caps, Actual: <<[\"<b>bold caps</b>\"]:caps -html>>");
b.Writeln("Expected: Bold firstCap, Actual: <<[\"<b>bold firstCaps</b>\"]:firstCap -html>>");
var engine = new ReportingEngine();
engine.BuildReport(doc, new string[]{});
doc.Save("c:/test.docx");

The ‘caps’ format works as expected. I can get ‘firstCap’ only to work if the html switch is removed.
Thanks.

@p.maier

We have logged this problem in our issue tracking system as WORDSNET-22691. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

1 Like

The issues you have found earlier (filed as WORDSNET-22691) have been fixed in this Aspose.Words for .NET 21.10 update also available on NuGet.