Article Details
Id:12478
Product:finPOWER Connect
Type:FIX
Version:2.02.03
Opened:02/12/2014
Closed:02/12/2014
Released:04/12/2014
Job: J014574

Scripts; Summary Page (version 2); HTML "ColourBlock" template formats differently to "Icon"

When generating HTML for a Summary Page (version 2) using the finHtmlSummaryPage2StringBuilder object, "Icon" and "ColourBlock" templates aligned text around them differently.

Text could be placed either side of an "Icon" template and would format correctly, i.e., the icon would appear on the same line as the text. The "ColourBlock" template however would display any text before it on a different line.

The following Script sample (which assumes sb is a finHtmlSummaryPage2StringBuilder object) demonstrates the issue:

sb.Append("<p>Icon {{icon|flag[red]}} and after</p>")    
sb.Append("<p>Colour block {{colourblock|red}} and after</p>")