title: Add carriage return to string resource in WPF
body: <p>My applications store all localized text in a string resource dictionary as suggested here <a href="http://msdn.microsoft.com/en-us/library/bb295251(VS.85).aspx" rel="noreferrer">http://msdn.microsoft.com/en-us/library/bb295251(VS.85).aspx</a> </p>
  
  <pre><code>        &lt;ResourceDictionary 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:system="clr-namespace:System;assembly=mscorlib"&gt;
  
    &lt;!-- String resource that can be localized --&gt;
    &lt;system:String x:Key="localizedMessage"&gt;en-US Message&lt;/system:String&gt;
  
  &lt;/ResourceDictionary&gt;
  </code></pre>
  
  <p>My question is, how can I add a new line to a string resource and have it render correctly when it's used in a TextBlock.</p>
  
  <p>Doing this inline works:</p>
  
  <pre><code>&lt;TextBlock Name="test" Text="Line 1&amp;#13;Line 2"&gt; &lt;/TextBlock&gt;
  </code></pre>
  
  <p>However, using <code>&amp;#13;</code>  in a string resource does not work. What's the best way to add a new line to a string resource?</p>