<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://sugarclub.sugarcrm.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>How to include basic &amp;quot;indent characters&amp;quot; in Sugar description and see the text correctly indented on record view (without having to edit it) ?</title><link>https://sugarclub.sugarcrm.com/dev-club/f/questions-answers/5803/how-to-include-basic-indent-characters-in-sugar-description-and-see-the-text-correctly-indented-on-record-view-without-having-to-edit-it</link><description>Hello, 
 
 I have a small issue and there is probably a trick but I don&amp;#39;t get it. 
 I want to fill a basic description field (textarea) with some text, including indentation character (\t or mulitples spaces) to display the text in a proper way. 
 Unfortunatelly</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to include basic "indent characters" in Sugar description and see the text correctly indented on record view (without having to edit it) ?</title><link>https://sugarclub.sugarcrm.com/thread/27099?ContentTypeID=1</link><pubDate>Fri, 29 Jul 2022 21:02:09 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:90afb845-a294-4ec7-a894-43d3bbca1e5b</guid><dc:creator>Jerry Clark</dc:creator><description>&lt;p&gt;I definitely like Gabriels solution the best! Oddly enough, using his solution I think you might also be able to drop the use of nl2br in the hbs file:&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span&gt;&amp;lt;div&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;    &lt;/span&gt;{{#if &lt;span&gt;value.short&lt;/span&gt;}}&lt;br /&gt;        {{#if &lt;span&gt;collapsed&lt;/span&gt;}}&lt;br /&gt;            &lt;span&gt;&amp;lt;div &lt;/span&gt;&lt;span&gt;style&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;white-space: pre;&lt;/span&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;{{&lt;span&gt;value.short&lt;/span&gt;}}&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;hellip&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;span&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;        &lt;/span&gt;{{else}}&lt;br /&gt;            &lt;span&gt;&amp;lt;div &lt;/span&gt;&lt;span&gt;style&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;white-space: pre;&lt;/span&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;{{&lt;span&gt;value.long&lt;/span&gt;}}&lt;span&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;        &lt;/span&gt;{{/if}}&lt;br /&gt;        &lt;span&gt;&amp;lt;button &lt;/span&gt;&lt;span&gt;data-action&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;toggle&lt;/span&gt;&lt;span&gt;&amp;quot; &lt;/span&gt;&lt;span&gt;class&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;btn btn-link btn-invisible toggle-text&lt;/span&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;            &lt;/span&gt;{{#if &lt;span&gt;collapsed&lt;/span&gt;}}&lt;br /&gt;                {{&lt;span&gt;str &lt;/span&gt;&lt;span&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;LBL_TEXTAREA_MORE&lt;/span&gt;&lt;span&gt;&amp;#39; &lt;/span&gt;&lt;span&gt;module&lt;/span&gt;}}&lt;br /&gt;            {{else}}&lt;br /&gt;                {{&lt;span&gt;str &lt;/span&gt;&lt;span&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;LBL_TEXTAREA_LESS&lt;/span&gt;&lt;span&gt;&amp;#39; &lt;/span&gt;&lt;span&gt;module&lt;/span&gt;}}&lt;br /&gt;            {{/if}}&lt;br /&gt;        &lt;span&gt;&amp;lt;/button&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;    &lt;/span&gt;{{else}}&lt;br /&gt;        &lt;span&gt;&amp;lt;div &lt;/span&gt;&lt;span&gt;style&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;white-space: pre;&lt;/span&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;{{&lt;span&gt;value.long&lt;/span&gt;}}&lt;span&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;    &lt;/span&gt;{{/if}}&lt;br /&gt;&lt;span&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to include basic "indent characters" in Sugar description and see the text correctly indented on record view (without having to edit it) ?</title><link>https://sugarclub.sugarcrm.com/thread/27098?ContentTypeID=1</link><pubDate>Fri, 29 Jul 2022 17:56:37 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:cf4d0c38-aebe-451e-a298-c547f4218f48</guid><dc:creator>Gabriel Shanahan</dc:creator><description>&lt;p&gt;Hey everyone,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;there&amp;#39;s a simpler solution - just add&amp;nbsp;&lt;span&gt;style&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;white-space: pre;&lt;/span&gt;&lt;span&gt;&amp;quot; to the &amp;lt;div&amp;gt; styles. The default detail.hbs has a single &amp;lt;div&amp;gt; that contains some HBS logic - keep in mind that, if you just add this style to the &amp;lt;div&amp;gt; that&amp;#39;s there, the first line will be indented because the whitespace in the .hbs file is also included (see e.g.&amp;nbsp;&lt;a href="https://stackoverflow.com/questions/65392917/strange-indentation-when-using-pre"&gt;here&lt;/a&gt;). The solution is to ensure that the actual text is not surrounded by whitespaces, by wrapping all the places a value actually gets inserted in a new div. Here&amp;#39;s an example that should work:&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span&gt;&amp;lt;div&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;    &lt;/span&gt;{{#if &lt;span&gt;value.short&lt;/span&gt;}}&lt;br /&gt;        {{#if &lt;span&gt;collapsed&lt;/span&gt;}}&lt;br /&gt;            &lt;span&gt;&amp;lt;div &lt;/span&gt;&lt;span&gt;style&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;white-space: pre;&lt;/span&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;{{&lt;span&gt;nl2br &lt;/span&gt;&lt;span&gt;value.short&lt;/span&gt;}}&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;hellip&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;span&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;        &lt;/span&gt;{{else}}&lt;br /&gt;            &lt;span&gt;&amp;lt;div &lt;/span&gt;&lt;span&gt;style&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;white-space: pre;&lt;/span&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;{{&lt;span&gt;nl2br &lt;/span&gt;&lt;span&gt;value.long&lt;/span&gt;}}&lt;span&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;        &lt;/span&gt;{{/if}}&lt;br /&gt;        &lt;span&gt;&amp;lt;button &lt;/span&gt;&lt;span&gt;data-action&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;toggle&lt;/span&gt;&lt;span&gt;&amp;quot; &lt;/span&gt;&lt;span&gt;class&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;btn btn-link btn-invisible toggle-text&lt;/span&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;            &lt;/span&gt;{{#if &lt;span&gt;collapsed&lt;/span&gt;}}&lt;br /&gt;                {{&lt;span&gt;str &lt;/span&gt;&lt;span&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;LBL_TEXTAREA_MORE&lt;/span&gt;&lt;span&gt;&amp;#39; &lt;/span&gt;&lt;span&gt;module&lt;/span&gt;}}&lt;br /&gt;            {{else}}&lt;br /&gt;                {{&lt;span&gt;str &lt;/span&gt;&lt;span&gt;&amp;#39;&lt;/span&gt;&lt;span&gt;LBL_TEXTAREA_LESS&lt;/span&gt;&lt;span&gt;&amp;#39; &lt;/span&gt;&lt;span&gt;module&lt;/span&gt;}}&lt;br /&gt;            {{/if}}&lt;br /&gt;        &lt;span&gt;&amp;lt;/button&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;    &lt;/span&gt;{{else}}&lt;br /&gt;        &lt;span&gt;&amp;lt;div &lt;/span&gt;&lt;span&gt;style&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;white-space: pre;&lt;/span&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;{{&lt;span&gt;nl2br &lt;/span&gt;&lt;span&gt;value.long&lt;/span&gt;}}&lt;span&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;    &lt;/span&gt;{{/if}}&lt;br /&gt;&lt;span&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to include basic "indent characters" in Sugar description and see the text correctly indented on record view (without having to edit it) ?</title><link>https://sugarclub.sugarcrm.com/thread/27097?ContentTypeID=1</link><pubDate>Fri, 29 Jul 2022 14:59:42 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:fed43c5e-e779-4b97-89e2-6254b8a3f9e8</guid><dc:creator>Francesca Shiekh</dc:creator><description>&lt;p&gt;Although I think that&amp;nbsp;&lt;a href="/members/jerryclark"&gt;Jerry Clark&lt;/a&gt;&amp;#39;s solution is probably a cleaner one, the getDescription function in the textarea field controller is used to clean up the short and the long versions of the text to be displayed in the non-edit-view.&lt;/p&gt;
&lt;p&gt;A quick test shows that adding the space and tab replacements that&amp;nbsp;&lt;a href="/members/jerryclark"&gt;Jerry Clark&lt;/a&gt;&lt;span&gt;&amp;nbsp;has in the custom handlebars helper achieves the goal (I actually did a quick test by temporarily changing the core code - DO NOT DO THIS in any environment as a permanent solution - ALWAYS use the extension framework)&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;getDescription: function(description, short) {&lt;br /&gt;&amp;nbsp; &amp;nbsp;short = !!short;&amp;nbsp;&lt;br /&gt;&amp;nbsp; &amp;nbsp;description = Handlebars.Utils.escapeExpression(description);&lt;br /&gt;&amp;nbsp; &amp;nbsp;description = short ? this.getShortComment(description) : description;&lt;br /&gt;&amp;nbsp; &amp;nbsp;description = this.insertHtmlLinks(description);&lt;br /&gt;&amp;nbsp; &amp;nbsp;//replace tabs with nbsp&lt;br /&gt;&amp;nbsp; &amp;nbsp;description = description.replace(/(\t)/g, &amp;#39;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;#39;);&lt;br /&gt;&amp;nbsp; &amp;nbsp;//replace spaces with nbsp&lt;br /&gt;&amp;nbsp; &amp;nbsp;description = description.replace(/(\x20)/g, &amp;#39;&amp;amp;nbsp;&amp;#39;);&lt;br /&gt;&amp;nbsp; &amp;nbsp;return new Handlebars.SafeString(description);&lt;br /&gt; },&lt;/p&gt;
&lt;p&gt;One would then assume that one could extend the textarea controller in the custom directory to achieve the goal without the need for a&amp;nbsp;custom handlebars helper.&lt;/p&gt;
&lt;p&gt;FrancescaS&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to include basic "indent characters" in Sugar description and see the text correctly indented on record view (without having to edit it) ?</title><link>https://sugarclub.sugarcrm.com/thread/27096?ContentTypeID=1</link><pubDate>Fri, 29 Jul 2022 11:47:33 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:d5448206-f26d-49bc-a260-2becbf6c77ef</guid><dc:creator>Fr&amp;#233;d&amp;#233;ric Rinaldi</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;thank you for this quick and great feedback. I will try as soon as possible.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Have a good day&lt;/p&gt;
&lt;p&gt;Fred&lt;/p&gt;
&lt;div id="ext-mouse-move"&gt;&lt;/div&gt;
&lt;div id="ext-mouse-down"&gt;&lt;/div&gt;
&lt;div id="ext-mouse-up"&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to include basic "indent characters" in Sugar description and see the text correctly indented on record view (without having to edit it) ?</title><link>https://sugarclub.sugarcrm.com/thread/27095?ContentTypeID=1</link><pubDate>Fri, 29 Jul 2022 09:23:34 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:46dd21d8-d345-41df-b019-4ffade2485f9</guid><dc:creator>Jerry Clark</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi&amp;nbsp;Fr&amp;eacute;d&amp;eacute;ric,&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;I might have some good news! I spent some time doing a quick proof of concept&amp;nbsp;and have&amp;nbsp;some steps and an example download for you.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Here&amp;#39;s the general idea of what a developer would need to do:&lt;/p&gt;
&lt;p&gt;To accomplish our desired formatting, we will first need to create a custom&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://support.sugarcrm.com/SmartLinks/Developer_Guide/User_Interface/Handlebars/index.html" rel="noopener noreferrer" target="_blank"&gt;helper&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;function for the handlebar templates.&lt;/p&gt;
&lt;p&gt;./custom/JavaScript/CustomHandlebarHelpers.js&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-js"&gt;&lt;span class="hljs-comment"&gt;/**
 * Custom Handlebar helpers.
 *
 * These functions are used in handlebars templates.
 * @class Handlebars.helpers
 * @singleton
 */&lt;/span&gt;
 (&lt;span class="hljs-function"&gt;&lt;span class="hljs-keyword"&gt;function&lt;/span&gt;(&lt;span class="hljs-params"&gt;app&lt;/span&gt;) &lt;/span&gt;{
    app.events.on(&lt;span class="hljs-string"&gt;&amp;quot;app:init&amp;quot;&lt;/span&gt;, &lt;span class="hljs-function"&gt;&lt;span class="hljs-keyword"&gt;function&lt;/span&gt;(&lt;span class="hljs-params"&gt;&lt;/span&gt;) &lt;/span&gt;{
        &lt;span class="hljs-comment"&gt;/**
         * convert text to HTML for formatting
         */&lt;/span&gt;
        Handlebars.registerHelper(&lt;span class="hljs-string"&gt;&amp;quot;customTextToHTML&amp;quot;&lt;/span&gt;, &lt;span class="hljs-function"&gt;&lt;span class="hljs-keyword"&gt;function&lt;/span&gt; (&lt;span class="hljs-params"&gt;text&lt;/span&gt;)
        &lt;/span&gt;{
            text = Handlebars.Utils.escapeExpression(text);
            text = text.replace(&lt;span class="hljs-regexp"&gt;/([^&amp;gt;\r\n]?)(\r\n|\n\r|\r|\n)/g&lt;/span&gt;, &lt;span class="hljs-string"&gt;&amp;#39;$1&amp;#39;&lt;/span&gt; + &lt;span class="hljs-string"&gt;&amp;#39;&amp;lt;br&amp;gt;&amp;#39;&lt;/span&gt;);
            text = text.replace(&lt;span class="hljs-regexp"&gt;/(\t)/g&lt;/span&gt;, &lt;span class="hljs-string"&gt;&amp;#39;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;#39;&lt;/span&gt;);
            text = text.replace(&lt;span class="hljs-regexp"&gt;/(\x20)/g&lt;/span&gt;, &lt;span class="hljs-string"&gt;&amp;#39;&amp;amp;nbsp;&amp;#39;&lt;/span&gt;);
            &lt;span class="hljs-keyword"&gt;return&lt;/span&gt; &lt;span class="hljs-keyword"&gt;new&lt;/span&gt; Handlebars.SafeString(text);
        });
    });
})(SUGAR.App);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Next, we need to create a&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://support.sugarcrm.com/SmartLinks/Developer_Guide/Architecture/Extensions/JSGroupings/" rel="noopener noreferrer" target="_blank"&gt;JSGrouping&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;to register our new function.&lt;/p&gt;
&lt;p&gt;./custom/Extension/application/Ext/JSGroupings/CustomHandlebarHelpers.php&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-php"&gt;&lt;span class="hljs-meta"&gt;&amp;lt;?php&lt;/span&gt;

&lt;span class="hljs-keyword"&gt;foreach&lt;/span&gt; ($js_groupings &lt;span class="hljs-keyword"&gt;as&lt;/span&gt; $key =&amp;gt; $groupings) {
    $target = current(array_values($groupings));
    &lt;span class="hljs-keyword"&gt;if&lt;/span&gt; ($target == &lt;span class="hljs-string"&gt;&amp;#39;include/javascript/sugar_grp7.min.js&amp;#39;&lt;/span&gt;) {
        $js_groupings[$key][&lt;span class="hljs-string"&gt;'custom/JavaScript/CustomHandlebarHelpers.js'&lt;/span&gt;] = &lt;span class="hljs-string"&gt;&amp;#39;include/javascript/sugar_grp7.min.js&amp;#39;&lt;/span&gt;;
        &lt;span class="hljs-keyword"&gt;break&lt;/span&gt;;
    }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Finally, we need to copy&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./clients/base/fields/textarea/detail.hbs&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;to&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;custom/clients/base/fields/textarea/detail.hbs&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and replace all instances of&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span&gt;{{nl2br}}&lt;/span&gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;with&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span&gt;{{customTextToHTML}}&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;./custom/clients/base/fields/textarea/detail.hbs&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;div&amp;gt; 
    {{#if value.short}} 
        {{#if collapsed}} 
            {{customTextToHTML value.short}}&amp;amp;hellip; 
        {{else}} 
            {{customTextToHTML value.long}} 
        {{/if}} 
        &amp;lt;button data-action=&amp;quot;toggle&amp;quot; class=&amp;quot;btn btn-link btn-invisible toggle-text&amp;quot;&amp;gt; 
            {{#if collapsed}} 
                {{str &amp;#39;LBL_TEXTAREA_MORE&amp;#39; module}} 
            {{else}} 
                {{str &amp;#39;LBL_TEXTAREA_LESS&amp;#39; module}} 
            {{/if}} 
        &amp;lt;/button&amp;gt; 
    {{else}} 
        {{customTextToHTML value.long}} 
    {{/if}} 
&amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Navigate to Admin &amp;gt; Repairs &amp;gt; Quick Repair and Rebuild and you should be good to go!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You can download the module loadable package from here:&lt;br /&gt;&lt;a href="https://upsertconsulting.com/snippets/2022/adding-indentation-for-textarea-fields/"&gt;upsertconsulting.com/.../&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to include basic "indent characters" in Sugar description and see the text correctly indented on record view (without having to edit it) ?</title><link>https://sugarclub.sugarcrm.com/thread/27094?ContentTypeID=1</link><pubDate>Fri, 29 Jul 2022 06:27:59 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:d201e80a-bb7c-4b15-ad8f-beef3c851dcd</guid><dc:creator>Fr&amp;#233;d&amp;#233;ric Rinaldi</dc:creator><description>&lt;p&gt;Hi &lt;a href="/members/jerryclark"&gt;Jerry Clark&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;that was what I was hoping to avoid :-(.&lt;/p&gt;
&lt;p&gt;But this also confirm that I am not totally dumb so it is only half a bad news.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for your feedback.&lt;/p&gt;
&lt;p&gt;Fred&lt;/p&gt;
&lt;div id="ext-mouse-move"&gt;&lt;/div&gt;
&lt;div id="ext-mouse-down"&gt;&lt;/div&gt;
&lt;div id="ext-mouse-up"&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to include basic "indent characters" in Sugar description and see the text correctly indented on record view (without having to edit it) ?</title><link>https://sugarclub.sugarcrm.com/thread/27088?ContentTypeID=1</link><pubDate>Thu, 28 Jul 2022 17:11:08 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:6a0a4846-7556-4029-a596-5d88e0571962</guid><dc:creator>Jerry Clark</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Fr&amp;eacute;d&amp;eacute;ric,&lt;br /&gt;&lt;br /&gt;When Sugar renders the detail view template, I believe they only&amp;nbsp;convert new lines (\n) to breaks (&amp;lt;br&amp;gt;) for display. In order to get it to respect tabs and multiple spaces, you&amp;#39;d likely&amp;nbsp;have to customize the textarea field to convert them to html characters.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>