Hi!
I have the below code which obviously should result in a bold text:
{% assign nr = nr | plus:1%}{{nr}}. {{ title_discharge_directors }}
but instead I have this:
**7. Kwijting bestuursorgaan en commissaris voor de uitoefening van hun mandaat over het afgelopen boekjaar
Does someone has any advise? I have already checked all options I know off but without any luck…
Michiel
February 14, 2022, 8:43am
2
Hi @lieels01 ,
The first character within a bold statement cannot be a space. A potential coding solution for you could be the following:
{% assign nr = nr | plus:1%}
**{{ nr }}. {{ title_discharge_directors }}**
Kind regards,
Michiel
Hi,
I tried this, but it’s not working either i’m afraid.
I still have the same result and have no space between the ** and the first text.
Kind regards,
Liesa
Michiel
February 14, 2022, 3:42pm
4
Hi @lieels01 ,
In that case, can you please share some more code?
Thank you,
Michiel
Yes of course!
Maybe as a side note: I have the same coding about 10 times in my document and only this one is acting strange…
Michiel
February 14, 2022, 5:14pm
6
@lieels01 ,
Could it be that the previous text in bold wasn’t closed correctly? That part of the code is not in this snapshot so I cannot verify this.
Please note that the best way to post a code snippet is explained here .
Regards,
Michiel
Hi Michiel,
The previous part of the code seems fine to me…
Please find herewith a bigger piece of code including the previous item and next item.
Kind regards,
Liesa
sven
February 22, 2022, 11:47am
8
Hi @lieels01 ,
Could you please copy-paste your code as a snippet?
This way, I can re-use that code and try to simulate the issue (how you create a snippet, is explained here ).
Oh, and could you add a strip filter perhaps:
**{{ nr }}. {{ title_discharge_directors | strip }}**
So this removes whitespace before and after a string, which I believe is causing the issue.
Hi Sven,
This worked perfectly, thank you!
1 Like