<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Line break Docx From Dynamic Template</title><link>https://community.appian.com/discussions/f/plug-ins/28870/line-break-docx-from-dynamic-template</link><description>Hi, 
 I&amp;#39;m trying to insert a break line inside the xml that will build the docx from Dynamic template, I tried with &amp;lt;br&amp;gt;, char(10), but I don&amp;#39;t know what to try anymore. 
 anyone have ideas? 
 the error log: &amp;quot;Changed to The value of attribute &amp;quot;daybefore</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Line break Docx From Dynamic Template</title><link>https://community.appian.com/thread/154170?ContentTypeID=1</link><pubDate>Tue, 07 Apr 2026 14:48:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a5e6f1e9-7859-45c6-b945-58c001c4ce8f</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="238566" url="~/discussions/f/plug-ins/28870/line-break-docx-from-dynamic-template/154161"]&lt;p&gt;&lt;strong&gt;&lt;span data-teams="true"&gt;Generated docs has this:&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span data-teams="true"&gt;&amp;amp;lt;/w:t&amp;amp;gt;&amp;amp;lt;w:br/&amp;amp;gt;&amp;amp;lt;w:t&amp;amp;gt;Text Data &amp;amp;lt;/w:t&amp;amp;gt;&amp;amp;lt;w:br/&amp;amp;gt;&amp;amp;lt;w:t&amp;amp;gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Your generated doc is receiving sanitized text (instead of the literal &amp;quot;&amp;lt;&amp;quot; and &amp;quot;&amp;gt;&amp;quot; symbols), which will not work.&amp;nbsp; To get the wordML trick to work, the literal symbols must be passed in.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Line break Docx From Dynamic Template</title><link>https://community.appian.com/thread/154161?ContentTypeID=1</link><pubDate>Tue, 07 Apr 2026 12:18:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:35c2b542-0263-4a5d-82c9-e1955daf48c4</guid><dc:creator>keerthik0010</dc:creator><description>&lt;p&gt;Hi Cugino95,&lt;/p&gt;
&lt;p&gt;How did you solve it?&lt;/p&gt;
&lt;p&gt;Could you help with exact expression to solve this problem?&lt;/p&gt;
&lt;p&gt;My issue is:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Text entered in a paragraph field on UI.&lt;/li&gt;
&lt;li&gt;Generated DOCX from dynamic template shows the new lines entered in the paragraph field fine.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;PDF from DOCX(generated docx) is not showing the new line but in same line.&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Tried below snip:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span&gt;substitute(&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;ri!multiLineText,&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;char(10),&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;quot;&amp;lt;/w:t&amp;gt;&amp;lt;w:br/&amp;gt;&amp;lt;w:t&amp;gt;&amp;quot;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;)&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span data-teams="true"&gt;Generated docs has this:&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span data-teams="true"&gt;&amp;amp;lt;/w:t&amp;amp;gt;&amp;amp;lt;w:br/&amp;amp;gt;&amp;amp;lt;w:t&amp;amp;gt;Text Data &amp;amp;lt;/w:t&amp;amp;gt;&amp;amp;lt;w:br/&amp;amp;gt;&amp;amp;lt;w:t&amp;amp;gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Line break Docx From Dynamic Template</title><link>https://community.appian.com/thread/114425?ContentTypeID=1</link><pubDate>Thu, 15 Jun 2023 20:54:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5b154fd4-fdc6-4f8c-8f14-ba4296bb7b59</guid><dc:creator>cugino95</dc:creator><description>&lt;p&gt;thx Mike, I resolved with&amp;nbsp;&amp;quot;&amp;amp;#10;&amp;quot; as line break using advanced document templat&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Line break Docx From Dynamic Template</title><link>https://community.appian.com/thread/113759?ContentTypeID=1</link><pubDate>Tue, 06 Jun 2023 00:11:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ca86293d-af05-402f-ad4b-01a5b74c7d06</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;Did you try the solution in this thread? &lt;a href="https://community.appian.com/discussions/f/general/8837/rendering-line-breaks-in-pdf"&gt;community.appian.com/.../rendering-line-breaks-in-pdf&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Line break Docx From Dynamic Template</title><link>https://community.appian.com/thread/113753?ContentTypeID=1</link><pubDate>Mon, 05 Jun 2023 20:26:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9d91d222-125c-4384-b605-63f91a50ebe8</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;&amp;quot;&amp;lt;br&amp;gt;&amp;quot; is HTML - to do manual trickery with Word files, you need to use the Word-flavored XML codes (not HTML), aka WordML.&amp;nbsp; I&amp;#39;m not exactly sure what syntax you&amp;#39;d need to use to do this within the Docx from Dynamic Template smart service, but the WordML carriage return is: &lt;em&gt;&lt;strong&gt;&amp;lt;w:br/&amp;gt;&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;/em&gt;In the &amp;quot;word document from template&amp;quot; (older) smart service, it&amp;#39;s possible to use the above by passing it in after a &amp;quot;text breakout&amp;quot; flag (&amp;quot;&amp;lt;/w:t&amp;gt;&amp;quot;) and then following it with another &amp;quot;text start&amp;quot; flag (&amp;quot;&amp;lt;w:t&amp;gt;&amp;quot;).&amp;nbsp; Without doing these first it just tries to render as plaintext (though also the &amp;quot;&amp;lt;&amp;quot; and &amp;quot;&amp;gt;&amp;quot; characters cause issues if not sanitized first).&amp;nbsp; Again, it&amp;#39;s all liable to be different in the &amp;quot;...Dynamic Template&amp;quot; smart service, so you&amp;#39;ll need to experiment.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>