# How to not ignore leading whitespaces in MessageFormat?

**URL:** https://meta.discourse.org/t/how-to-not-ignore-leading-whitespaces-in-messageformat/59641
**Category:** Translations
**Tags:** pr-welcome
**Created:** [21.Март.2017 18:12:36 UTC](https://meta.discourse.org/t/how-to-not-ignore-leading-whitespaces-in-messageformat/59641 "2017-03-21T18:12:36Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![SafaAlfulaij](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/safaalfulaij/32/120867_2.png) [@SafaAlfulaij](https://meta.discourse.org/u/SafaAlfulaij)
#### Post date: [21.Март.2017 18:12:37 UTC](https://meta.discourse.org/t/how-to-not-ignore-leading-whitespaces-in-messageformat/59641/1 "2017-03-21T18:12:37Z")

</div>

Hello.  
So in MessageFormat strings, whenever a string that starts with a white space, the white spaces get trimmed out.  
I found this issue regarding this: [Preserve leading whitespace · Issue #144 · messageformat/messageformat · GitHub](https://github.com/messageformat/messageformat.js/issues/144)  
Not sure if the library is outdated, or if that issue didn’t get solved 😅

Example:

{BOTH, select, true { و} false {} other {}}

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [21.Март.2017 18:20:00 UTC](https://meta.discourse.org/t/how-to-not-ignore-leading-whitespaces-in-messageformat/59641/2 "2017-03-21T18:20:00Z")

</div>

Library is outdated, we should absolutely update to latest #pr-welcome
