# YAML multiline strings

**URL:** <https://travis-ci.community/t/yaml-multiline-strings/3914>\
**Category:** Travis CI Discussions & Feedback\
**Tags:** config, yaml\
**Created:** [June 26, 2019, 9:13am UTC](https://travis-ci.community/t/yaml-multiline-strings/3914 "2019-06-26T09:13:42Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![superruzafa](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/superruzafa/32/2088_2.png) [@superruzafa](https://travis-ci.community/u/superruzafa)\
**Post date:** [June 26, 2019, 1:08pm UTC](https://travis-ci.community/t/yaml-multiline-strings/3914/4 "2019-06-26T13:08:40Z")

</div>

I guess I found the cause: The multiline string is rendered correctly **only if all the lines start at the same column than the first one** :

**Wrong**

```
after_success:
  - >
    run_test.sh
      arg
      --flag-1
      --flag-2

```

**Good**

```
after_success:
  - >
    run_test.sh
    arg
    --flag-1
    --flag-2

```

I don’t know if this is part of the YAML spec. In other projects I used several levels of indentation without problems in multiline strings.

---

_[View the full topic](https://travis-ci.community/t/yaml-multiline-strings/3914)._
