Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8043 Posts in 1856 Topics- by 2099 Members - Latest Member: roi
Pages: 1 [2]   Go Down
Print
Author Topic: Description Break Lines  (Read 1050 times)
0 Members and 1 Guest are viewing this topic.
GoleyC
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #15 on: May 16, 2002, 10:28:00 PM »


Yes, it is the default template

------------------

Logged
Arjen
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #16 on: July 17, 2002, 02:41:00 AM »

To AWSGuy:

Had the same problem with the duplicating break lines in multiple line edit fields on my system. Solved it as well (one line of code in DBFile.pm). There's a new topic in this forum that describes it (Duplicating newlines in Forum General Use).

------------------

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #17 on: January 28, 2003, 01:19:00 PM »

** There's a new topic in this forum that describes it (Duplicating newlines in Forum General Use). **

It is actually titled "Repeating newlines".

JFYI

Dan O.

------------------

Logged
mguydish
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #18 on: April 05, 2003, 12:41:00 AM »

I successfully added the mod for line breaks in my template:

$EVENT->{details}->{$_} =~ s/\r\n/<BR>/g;

Then, months later, it stopped working.  I decided to try

$EVENT->{details}->{$_} =~ s/\n/<BR>/g;

I know nothing about Perl, but I was thinking my web server is handling line breaks differently (i.e. only using \n now)

and it worked! My own hack Magic to me!

My final fix was to have both lines such that only one of them should be 'triggered'.

This is what it looked like together:

$EVENT->{details}->{$_} =~ s/\r\n/<BR>/g;
$EVENT->{details}->{$_} =~ s/\n/<BR>/g;

Use at your own discretion, I only recognized the \r and \n amongst the Perl code.  I do not know Perl.

Mike

------------------

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #19 on: April 05, 2003, 12:37:00 PM »

 
quote:
My final fix was to have both lines such that only one of them should be 'triggered'. This is what it looked like together:

$EVENT->{details}->{$_} =~ s/\r\n/<BR>/g;
$EVENT->{details}->{$_} =~ s/\n/<BR>/g;


That could actually be done on a single line with something like:

$EVENT->{details}->{$_} =~ s/\r?\n/<BR>/g;

Which says maybe there will be a \r in addition to, but definitely a \n to be replaced.

JFYI

Dan O.

------------------

Logged
Pages: 1 [2]   Go Up
Print
Jump to: