<p>The only thing lacking in producing well formatted scripts (&lt; 80 columns) has been xlog multiline support.  This PR works by collapsing the multiple elements into the single element by further populating the linked list.  </p>

<h3>script example</h3>

<p>startup_route {<br>
    $var(prefix) = "test   :";<br>
    xlog("===============&lt; BEGIN TEST &gt;======================\n");<br>
    xlog("L_INFO","single no pvar\n");<br>
    xlog("L_INFO","double no pvar : line 1, ",<br>
                  "line 2\n");<br>
    xlog("L_INFO","$var(prefix) single line\n");<br>
    xlog("L_INFO","$var(prefix) double : line 1, ",<br>
                  "line 2\n");<br>
    xlog("L_INFO", "$var(prefix) double pvar : line 1, ",<br>
                   "line 2 with pvar $var(prefix)\n");<br>
    xlog("L_INFO", "$var(prefix) triple pvar : line 1, ",<br>
                   "line 2, ",<br>
                   "line 3 with pvar $var(prefix)\n");<br>
    xlog("L_INFO", "$var(prefix) quadruple : line 1, ",<br>
                   "line 2, ",<br>
                   "line 3, ",<br>
                   "line 4 - LONGEST_ACTION_SIZE\n");<br>
    xlog("===============&lt; END TEST &gt;======================\n\n");<br>
}</p>

<h3>log output</h3>

<pre><code>Jun  2 09:01:41 opensandra opensips: ===============&lt; BEGIN TEST &gt;======================
Jun  2 09:01:41 opensandra opensips: single no pvar
Jun  2 09:01:41 opensandra opensips: double no pvar : line 1, line 2
Jun  2 09:01:41 opensandra opensips: test   : single line
Jun  2 09:01:41 opensandra opensips: test   : double : line 1, line 2
Jun  2 09:01:41 opensandra opensips: test   : double pvar : line 1, line 2 with pvar test   :
Jun  2 09:01:41 opensandra opensips: test   : triple : line 1, line 2, line 3 with pvar test   :
Jun  2 09:01:41 opensandra opensips: test   : quadruple : line 1, line 2, line 3, line 4 - LONGEST_ACTION_SIZE
Jun  2 09:01:41 opensandra opensips: ===============&lt; END TEST &gt;======================
</code></pre>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>&nbsp;&nbsp;<a href='https://github.com/OpenSIPS/opensips/pull/538'>https://github.com/OpenSIPS/opensips/pull/538</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>xlog support for multiple lines</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/OpenSIPS/opensips/pull/538/files#diff-0">cfg.y</a>
    (24)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/OpenSIPS/opensips/pull/538/files#diff-1">route.c</a>
    (129)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/OpenSIPS/opensips/pull/538.patch'>https://github.com/OpenSIPS/opensips/pull/538.patch</a></li>
  <li><a href='https://github.com/OpenSIPS/opensips/pull/538.diff'>https://github.com/OpenSIPS/opensips/pull/538.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/pull/538">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOcif5SgFrfF58of9zppdJqtQ2NiRuqks5oPjSYgaJpZM4E1dit.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
  <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" href="https://github.com/OpenSIPS/opensips/pull/538"></link>
    <meta itemprop="name" content="View Pull Request"></meta>
  </div>
  <meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>