Hi Gregory,<br><br>The leading and trailing spaces are trimmed off from the input values in the following:<br><br>File: <span style="font-weight: bold;">include/utils/CommonUtils.php</span><br>function setObjectValuesFromRequest($focus)<br>
<br>The highlighted line of code can help you to preserve the leading and trailing spaces for Faq module record saving.<br><span style="font-style: italic;">NOTE: This code is based on vtiger 5.0.4<br><span style="font-style: italic;"><br>
</span></span><span style="font-family: courier new,monospace;">function setObjectValuesFromRequest($focus)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">{</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; global $log;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; ...</span><span style="font-family: courier new,monospace;"></span><span style="font-family: courier new,monospace;"></span><span style="font-family: courier new,monospace;"></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; if(isset($_REQUEST[&#39;mode&#39;]))</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; {</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $focus-&gt;mode = $_REQUEST[&#39;mode&#39;];</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; }</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; foreach($focus-&gt;column_fields as $fieldname =&gt; $val)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; {</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if(isset($_REQUEST[$fieldname]))</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if(is_array($_REQUEST[$fieldname]))</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $value = $_REQUEST[$fieldname];</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <span style="background-color: rgb(255, 255, 102);">else if ($_REQUEST[&#39;module&#39;] == &#39;Faq&#39;) </span></span><br style="font-family: courier new,monospace; background-color: rgb(255, 255, 102);">
<span style="font-family: courier new,monospace; background-color: rgb(255, 255, 102);">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $value = $_REQUEST[$fieldname];</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; else</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $value = trim($_REQUEST[$fieldname]);</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $focus-&gt;column_fields[$fieldname] = $value;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }</span><span style="font-style: italic;"><span style="font-style: italic;"><br></span></span><br>Hope you find this useful.<br><br>Regards,<br>Prasad<br>vtiger Team<br>
<br><div><span class="gmail_quote">On 4/11/08, <b class="gmail_sendername">Gregory Machin</b> &lt;<a href="mailto:greg@ct-net.org">greg@ct-net.org</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi<br> I have been creating some faq&#39;s today and I noticed that once u save the<br> faq it loose all the leading spaces of each line and when u edit again<br> it the spaces are there ... I have a faq that has alot of indentation<br>
 (leading spaces) and with out it, it looks very messy.. how do I get<br> past this ?<br> <br> notes<br> work station &gt;<br> Using gedit to type the documents ... copy pasted into the faq and<br> edited again to fit<br>
 Using firefox <a href="http://2.0.0.13">2.0.0.13</a><br> Using linux Fedora core 8<br> <br> Thanks<br> <br> <br> --<br> Gregory Machin<br> CT-Net<br> <a href="http://www.ct-net.org">www.ct-net.org</a><br> <a href="mailto:greg@ct-net.org">greg@ct-net.org</a><br>
 phone : +27 12 379 3497<br> fax&nbsp;&nbsp; : +27 12 379 4113<br> Cell&nbsp;&nbsp;: +27 72 524 8096<br> <br> humans do not use the address<br> below its for trapping spam.<br> spamtrap&nbsp;&nbsp;<a href="mailto:imasucker@ct-net.org">imasucker@ct-net.org</a><br>
 <br> _______________________________________________<br> Reach hundreds of potential candidates - <a href="http://jobs.vtiger.com">http://jobs.vtiger.com</a><br> </blockquote></div><br>