s_m_b has asked for the wisdom of the Perl Monks concerning the following question:
Some examples:
Without switching anything, I get
{\pard
\fs20
I drive from east hull to grimston bar\'2e Would anyone be interested
in a car share? Also I could collect / drop off along the A1079\'2e
Outward journeys depart Hull approx 06:45
Return
journeys depart York approx 17:30 to 18:00 Monday, Tuesday and 16:30
the rest of the week\'2e
\par}
Using $message =~ s~<br />~\par~ig; Gets
{\pard \fs20 I drive from east hull to grimston bar\'2e Would anyone be interested in a car share? Also I could collect / drop off along the A1079\'2eparparOutward journeys depart Hull approx 06:45parparReturn journeys depart York approx 17:30 to 18:00 Monday, Tuesday and 16:30 the rest of the week\'2e par par \par}
using $message =~ s~<br />~\\par~ig; produces
{\pard \fs20 I drive from east hull to grimston bar\'2e Would anyone be interested in a car share? Also I could collect / drop off along the A1079\'2e\'5cpar\'5cparOutward journeys depart Hull approx 06:45\'5cpar\'5cparReturn journeys depart York approx 17:30 to 18:00 Monday, Tuesday and 16:30 the rest of the week\'2e \'5cpar \'5cpar \par}
Am I missing something very obvious here?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Formatting rtf - problems
by moritz (Cardinal) on May 13, 2008 at 11:32 UTC | |
by s_m_b (Acolyte) on May 13, 2008 at 16:16 UTC |