Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE development » Bug Reports » Adding line breaks to text fields
Adding line breaks to text fields [message #4088] Tue, 04 March 2014 06:42 Go to previous message
haider.faraz is currently offline  haider.faraz
Messages: 15
Registered: July 2013
Junior Member
I found a workaround within the framework. There are two steps to this:

Step 1:
Add the line of code
$cellspec['text'] = str_replace ( "<br>", chr(10),  $cellspec['text'] );


in the function
detailView_multi (&$dbobject, $zone, $current_row)
just below the line
$cellspec['text'] = str_replace('&nbsp;', $nbsp, $cellspec['text']);
in the file std.pdf.class.inc

Step 2:
In the cell where one wants to introduce the line break you can introduce the string "<br>" such that for example if you want to print "hello world" but with a line break then you would have to modify the text string to "hello<br>world".
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Change number of columns in PDF list report
Next Topic: PostgreSQL error
Goto Forum:
  


Current Time: Wed Jan 26 15:13:27 EST 2022

Total time taken to generate the page: 0.00970 seconds