# The 'WrapFileLinks' formatter

**URL:** <https://discourse.jabref.org/t/the-wrapfilelinks-formatter/172>\
**Category:** Help\
**Created:** [August 30, 2016, 8:50am UTC](https://discourse.jabref.org/t/the-wrapfilelinks-formatter/172 "2016-08-30T08:50:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lars](https://avatars.discourse-cdn.com/v4/letter/l/74df32/32.png) [@Lars](https://discourse.jabref.org/u/Lars)\
**Post date:** [August 30, 2016, 8:50am UTC](https://discourse.jabref.org/t/the-wrapfilelinks-formatter/172/1 "2016-08-30T08:50:34Z")

</div>

Hi folks

According to the ‘The WrapFileLinks formatter’ documation @ [https://help.jabref.org/en/CustomExports](https://help.jabref.org/en/CustomExports) should by using the following argument …

\format[WrapFileLinks(\i. \d (\p))]{\file}

… give the following output:

1. John’s final report (/home/john/report.pdf)
2. An early “draft” (/home/john/draft.txt)

But in my case the output looks like this:

1. John’s final report (/home/john/report.pdf2.  
An early “draft” (/home/john/draft.txt

Any ideas what I’m doing wrong (preferences, etc.)?

I am using Jabref 3.6

Thanks in advance for any help.

Regards Lars

---

<div class="post-metadata">

**Author:** ![oscar.gustafsson](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/oscar.gustafsson/32/8_2.png) [@oscar.gustafsson](https://discourse.jabref.org/u/oscar.gustafsson)\
**Post date:** [September 1, 2016, 8:38am UTC](https://discourse.jabref.org/t/the-wrapfilelinks-formatter/172/2 "2016-09-01T08:38:02Z")

</div>

I’ve started to add some tests for that class, so eventually we will figure out what is wrong.

However, I think the example you quote should behave as described, so clearly something is wrong, which is not your interpretation of the help.

---

<div class="post-metadata">

**Author:** ![oscar.gustafsson](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/oscar.gustafsson/32/8_2.png) [@oscar.gustafsson](https://discourse.jabref.org/u/oscar.gustafsson)\
**Post date:** [September 1, 2016, 10:30am UTC](https://discourse.jabref.org/t/the-wrapfilelinks-formatter/172/3 "2016-09-01T10:30:53Z")

</div>

I can confirm this. A solution can be found in [https://builds.jabref.org/layoutbracesproblem](https://builds.jabref.org/layoutbracesproblem) in a few minutes. The problem was that the argument parsing stopped at the first ), so only `\i. \d (\p` was sent to the layout instead of `\i. \d (\p)`.
