Bold formatting and text size

Hi,

I have a template which seems to be inconsistently applying bold formatting on my exports.

Code being used
{% stripnewlines %}
{% comment %}
================================================================================================================================================
Introduction
================================================================================================================================================
{% endcomment %} 
{% ic %}
|:-5%-:|-95%-+
{% newline %}
|{% input custom.executive_summary.bolIntrodution as:boolean %}
|{% endic %}{% if custom.executive_summary.bolIntrodution == true %}
    <font size="10">{% input custom.executive_summary.txtIntroduction placeholder:"Please input an introduction" as:text %}
    {% ic %}{% newline %}|{% newline %}{% endic %}
    {% nic %}<br><br>{% endnic %}
 {% else %}
    {%ic%}*{% t "Tick to include an" %} **<font color="065da9">{% t "Introduction" %}</font>***
    {% newline %}|{% newline %}{% endic %}
  {% endif %}
{% comment %}
================================================================================================================================================
End of section
================================================================================================================================================
{% endcomment %} 



{% comment %}
================================================================================================================================================
Fixed Assets
================================================================================================================================================
{% endcomment %} 
{% ic %}
{% newline %}
|:-5%-:|-95%-+
{% newline %}
|{% input custom.executive_summary.bolFixedAssets as:boolean %}
|{% endic %}{% if custom.executive_summary.bolFixedAssets == true %}
    {% ic %}**<font color="065da9">Fixed Assets</font>** {% newline %}{% endic %}
    {% nic %}**<font color="065da9" size="10">Fixed Assets</font>**<br>{% endnic %}
    {% ic %}
||  {% endic %}<font size="10">{% input custom.executive_summary.txtFixedAssets placeholder:"Please provide additional commentary" as:text %}
    {% ic %}{% newline %}|{% newline %}{% endic %}
    {% nic %}<br><br>{% endnic %}
 {% else %}
    {% ic %}*{% t "Tick to include commentary on" %} **<font color="065da9">{% t "Fixed Assets" %}</font>***
    {% newline %}|{% newline %}{% endic %}
  {% endif %}
{% comment %}
================================================================================================================================================
End of section
================================================================================================================================================
{% endcomment %}
{% endstripnewlines %}

When ticking for example just ‘Fixed assets’ and previewing the export, the title ‘Fixed assets’ is bold:

If you tick both ‘Introduction’ and ‘Fixed assets’, the preview will show the title ‘Fixed assets’ as ‘**Fixed assets**’ and will no longer be bold?

Is there something wrong with the code, as I can’t seem to understand what is causing this problem.

Also, is there a way to stop the display of the text being so large? We’re using font size 10 for our export, but the liquid screen is much larger than font size 10 as you can see above?

Many thanks
Joe

Hi Joe,

Your are missing the closing tag </font> on the first title, it should be like this:

<font size="10">{% input custom.executive_summary.txtIntroduction placeholder:"Please input an introduction" as:text %}</font>

In regards to your second query, the font size does not match the one in export so you should try using size 3 or perhaps.

Best,
Borja

Morning all,

Actually you should use font sizes this way:

If you use the size numbers, they’ll give a strange behaviour as you’ve notices, which is why above code was made :slightly_smiling_face: