# Error with new lines in custom properties

**URL:** <https://discourse.mapeditor.org/t/error-with-new-lines-in-custom-properties/2542>\
**Category:** Bugs\
**Created:** [July 14, 2017, 3:31pm UTC](https://discourse.mapeditor.org/t/error-with-new-lines-in-custom-properties/2542 "2017-07-14T15:31:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Purpe](https://avatars.discourse-cdn.com/v4/letter/p/bc79bd/32.png) [@Purpe](https://discourse.mapeditor.org/u/Purpe)\
**Post date:** [July 14, 2017, 3:31pm UTC](https://discourse.mapeditor.org/t/error-with-new-lines-in-custom-properties/2542/1 "2017-07-14T15:31:14Z")

</div>

when saving a tile map with an object with a custom property  
if it has new lines it saves like this:

```
<property name="ABC">here 
is a 
test</property>

```

instead of like this:

```
<property name="ABC" value="here\nis a\ntest"/>

```

Is this a known issue? Is this only an issue with my xml parser? Is there a way to get around this?

---

<div class="post-metadata">

**Author:** ![bjorn](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/bjorn/32/1599_2.png) [@bjorn](https://discourse.mapeditor.org/u/bjorn)\
**Post date:** [July 16, 2017, 9:11pm UTC](https://discourse.mapeditor.org/t/error-with-new-lines-in-custom-properties/2542/2 "2017-07-16T21:11:44Z")

</div>

This is intensional because the assumption is that when newlines are present, you may write quite a bit of text and it will be easier to read when it is written out as text data rather than as a value of an attribute, where newlines would need to be escaped.

The [TMX Map Format](http://doc.mapeditor.org/reference/tmx-map-format/#property) documentation does make a note of this.
