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?
HTML.NET Programming

Avatar of undefined
Last Comment
volking

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
mwheeler1982

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
SOLUTION
BuggyCoder

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
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
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
volking

ASKER
The ANSWER is ... Does NOT EXIST! NO dual purpose </br> and CrLf in ONE text file
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes