title: Can git log pretty format preserve new lines in subject?
body: <p>I'm using this command in a python script to generate an xml file that is later processed by our CI-system:</p>
  
  <pre><code>git log -1 --date=iso --pretty=format:"&lt;logentry revision=\"%h\" scm=\"git\"&gt;%n&lt;author&gt;%an&lt;/author&gt;%n&lt;date&gt;%ad&lt;/date&gt;%n&lt;msg&gt;%s&lt;/msg&gt;%n"
  </code></pre>
  
  <p>It produces output on the following format</p>
  
  <pre><code>&lt;logentry revision="1e370f5" scm="git"&gt;
  &lt;author&gt;Johan Govers&lt;/author&gt;
  &lt;date&gt;2016-02-24 13:11:15 +0100&lt;/date&gt;
  &lt;msg&gt;PP-204 Try out git PP-207 New build script * Add missing kind="file" to path nodes in changes xml file.&lt;/msg&gt;
  </code></pre>
  
  <p>Using <code>git log -1</code> shows the message with the linebreaks but with the pretty format they are omitted. Is there any way to produce an output like the following?</p>
  
  <pre><code>&lt;logentry revision="1e370f5" scm="git"&gt;
  &lt;author&gt;Johan Govers&lt;/author&gt;
  &lt;date&gt;2016-02-24 13:11:15 +0100&lt;/date&gt;
  &lt;msg&gt;PP-204 Try out git 
  PP-207 New build script 
  * Add missing kind="file" to path nodes in changes xml file.&lt;/msg&gt;
  </code></pre>