Link to home
Start Free TrialLog in
Avatar of volking
volking

asked on

EXISTS? Dual purpose </br> and CrLf in ONE text file?

I have a text file. The text file is sometimes viewed with a browser and sometimes viewed with a ASP.NET WinForms application.

If I use </br> the line feeds appear right in the browser but wrong in the WinForm.
and
If I use CrLf the line feeds appear wrong in the browser but right in the WinForm.

arrrrrrrrggghhhh!

Any solution? Other than storing two versions of every blasted file?
ASKER CERTIFIED SOLUTION
Avatar of mwheeler1982
mwheeler1982
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of volking
volking

ASKER

@mwheeler1982
@BuggyCoder

Thanks for the comments, but I already know how to work around the problem, I hoped there was a dual-purpose solution.

Problem is, I don't know (in advance) which method will be used because the file is attached to an SMTP email message. If OUTLOOK looks at it it's one result if HOTMAIL looks at it, it's another, and I have no idea which will be used to open the attached text file!
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of volking

ASKER

The ANSWER is ... Does NOT EXIST! NO dual purpose </br> and CrLf in ONE text file