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;"> global $log;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> ...</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;"> if(isset($_REQUEST['mode']))</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;"> $focus->mode = $_REQUEST['mode'];</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;"> foreach($focus->column_fields as $fieldname => $val)</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;"> if(isset($_REQUEST[$fieldname]))</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;"> if(is_array($_REQUEST[$fieldname]))</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> $value = $_REQUEST[$fieldname];</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <span style="background-color: rgb(255, 255, 102);">else if ($_REQUEST['module'] == 'Faq') </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);"> $value = $_REQUEST[$fieldname];</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> else</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> $value = trim($_REQUEST[$fieldname]);</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> $focus->column_fields[$fieldname] = $value;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> }</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> <<a href="mailto:greg@ct-net.org">greg@ct-net.org</a>> 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'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 ><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 : +27 12 379 4113<br> Cell : +27 72 524 8096<br> <br> humans do not use the address<br> below its for trapping spam.<br> spamtrap <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>