# Bold not working

**URL:** <https://community.silverfin.com/t/bold-not-working/2209>\
**Category:** Templates\
**Tags:** font, html, styling\
**Created:** [February 13, 2022, 5:05pm UTC](https://community.silverfin.com/t/bold-not-working/2209 "2022-02-13T17:05:09Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![lieels01](https://avatars.discourse-cdn.com/v4/letter/l/f08c70/32.png) [@lieels01](https://community.silverfin.com/u/lieels01)\
**Post date:** [February 13, 2022, 5:05pm UTC](https://community.silverfin.com/t/bold-not-working/2209/1 "2022-02-13T17:05:09Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![Michiel](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/michiel/32/2364_2.png) [@Michiel](https://community.silverfin.com/u/Michiel)\
**Post date:** [February 14, 2022, 8:43am UTC](https://community.silverfin.com/t/bold-not-working/2209/2 "2022-02-14T08:43:35Z")

</div>

Hi @lieels01 ,

The first character within a bold statement cannot be a space. A potential coding solution for you could be the following:

```auto
{% assign nr = nr | plus:1%}
**{{ nr }}. {{ title_discharge_directors }}**

```

Kind regards,

Michiel

---

<div class="post-metadata">

**Author:** ![lieels01](https://avatars.discourse-cdn.com/v4/letter/l/f08c70/32.png) [@lieels01](https://community.silverfin.com/u/lieels01)\
**Post date:** [February 14, 2022, 3:40pm UTC](https://community.silverfin.com/t/bold-not-working/2209/3 "2022-02-14T15:40:07Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Michiel](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/michiel/32/2364_2.png) [@Michiel](https://community.silverfin.com/u/Michiel)\
**Post date:** [February 14, 2022, 3:42pm UTC](https://community.silverfin.com/t/bold-not-working/2209/4 "2022-02-14T15:42:08Z")

</div>

Hi @lieels01 ,

In that case, can you please share some more code?

Thank you,

Michiel

---

<div class="post-metadata">

**Author:** ![lieels01](https://avatars.discourse-cdn.com/v4/letter/l/f08c70/32.png) [@lieels01](https://community.silverfin.com/u/lieels01)\
**Post date:** [February 14, 2022, 4:12pm UTC](https://community.silverfin.com/t/bold-not-working/2209/5 "2022-02-14T16:12:46Z")

</div>

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…

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/2X/b/b81ebbb83cbbbb1ce51957fb4120934b64ec39f0.png)

---

<div class="post-metadata">

**Author:** ![Michiel](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/michiel/32/2364_2.png) [@Michiel](https://community.silverfin.com/u/Michiel)\
**Post date:** [February 14, 2022, 5:14pm UTC](https://community.silverfin.com/t/bold-not-working/2209/6 "2022-02-14T17:14:03Z")

</div>

@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](https://community.silverfin.com/t/tip-use-of-snippets/837).

Regards,

Michiel

---

<div class="post-metadata">

**Author:** ![lieels01](https://avatars.discourse-cdn.com/v4/letter/l/f08c70/32.png) [@lieels01](https://community.silverfin.com/u/lieels01)\
**Post date:** [February 22, 2022, 10:39am UTC](https://community.silverfin.com/t/bold-not-working/2209/7 "2022-02-22T10:39:01Z")

</div>

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

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/2X/b/b1212f160d9f84bb739b0657fdfef5fe139bdf36.jpeg)

---

<div class="post-metadata">

**Author:** ![sven](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/sven/32/1495_2.png) [@sven](https://community.silverfin.com/u/sven)\
**Post date:** [February 22, 2022, 11:47am UTC](https://community.silverfin.com/t/bold-not-working/2209/8 "2022-02-22T11:47:07Z")

</div>

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](https://community.silverfin.com/t/tip-use-of-snippets/837)).

Oh, and could you add a [strip filter](https://developer.silverfin.com/docs/string-filters#strip) perhaps:

```auto
**{{ nr }}. {{ title_discharge_directors | strip }}**

```

So this removes whitespace before and after a string, which I believe is causing the issue.

---

<div class="post-metadata">

**Author:** ![lieels01](https://avatars.discourse-cdn.com/v4/letter/l/f08c70/32.png) [@lieels01](https://community.silverfin.com/u/lieels01)\
**Post date:** [February 28, 2022, 4:22pm UTC](https://community.silverfin.com/t/bold-not-working/2209/9 "2022-02-28T16:22:37Z")

</div>

Hi Sven,

This worked perfectly, thank you!

---

<div class="post-metadata">

**Author:** ![sven](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/sven/32/1495_2.png) [@sven](https://community.silverfin.com/u/sven)\
**Post date:** [February 28, 2022, 4:29pm UTC](https://community.silverfin.com/t/bold-not-working/2209/10 "2022-02-28T16:29:39Z")

</div>

Closed on February 28, 2022, 4:29pm UTC


