title: How to add new line in replacement string - Docx4j
body: <p>I'm using Docx4j with Java/Spring and i've built a service that replaces some placeholders in a document with variable values.</p>
  <p>So in my docx I have a &quot;placeholder&quot; like this: [address]  that I'm replacing with 5 different variables combined.</p>
  <p>My code to do so is:</p>
  <pre><code>    Docx4JSRUtil.searchAndReplace(template, Stream.of(new String[][] {
       &quot;[address]&quot;, &quot;&quot; + cust_street + &quot; &quot; + &quot; &quot; + cust_locality + &quot; &quot; + cust_cap &quot;&quot;
  }
  </code></pre>
  <p>So actually my code replaces the placeholder with all the values on the same line.
  But what i actually need to accomplish is to write these 3 variables on 2 different lines with a line break.</p>
  <p>So instead of a result like:
  cust street cust locality cust cap</p>
  <p>I need a result like:</p>
  <p>cust street</p>
  <p>cust locality cust cap</p>
  <p>Thanks to all in advance :)</p>