|
From: Jonathan S. <jn...@ge...> - 2006-05-11 18:49:40
|
On Thu, 2006-05-11 at 19:13, Claus Berghammer wrote: > Hello NMS Supporters, > > I still have the problem with the missing feature to convert linefeeds (or > linebreaks?) into <br />. Does anyone know a quick n' dirty "hack" for the > TFMail script, that can do that? > > As I said earlier, I don't have a problem with the width of the text input, > but with the missing <br />... > > I found this codeline on the net: > > ~~~~~~~~~~~~ > $input =~ s/\n/<BR>/g); > ~~~~~~~~~~~~ > > This command should convert the linefeeds, but I dont know where it should > be placed in the tfmail script. Beside that, this script makes <BR> (I > think), but I need <br /> instead. > > Does anyone know the correct codeline, and where to place it in the tfmail > script? There isn't a "correct codeline" that can be simply added to the program to adjust the input in this way, the input values for the templates for both the email and the html output are shared and consequently anything that is done to one will be done for the other. If one wanted to simply do it for only the HTML output then you would have to adjust the values stored in the template directives individually - this obviously will not be a simple line of code and probably be as much code as doing it properly. As I said before the proper way to do this would be to allow access to the 'lines' or 'paragraphs' in the inputs through the templating mechanism, but this requires a developer having the time and inclination to actually implement it: it is on the TODO list. I've copied in the developers list to see if anyone feels able to pick it up. /J\ -- This e-mail is sponsored by http://www.integration-house.com/ |