Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / June 2005

Tip: Looking for answers? Try searching our database.

How can I export to HTML with break's, not newlines?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Erik-Jan Vens - 13 Jun 2005 14:40 GMT
Dear reader.

One of my users writes the programme for her theatre. She also updates the
website with the same information.

The programme always looks the same:

---------------------
name: ...
date: ...
time: ...
price: ...

more info divided over more lines

---------------------
This works perfectly fine for the printed programme. But there are problems
with the HTML output which she copy-pastes into the website edit facility.

She makes the linebreaks by typing a newline. Through the Word HTML Filter
program I am able to remove all the msonormal's. But every newline is
rendered in HTML by an end of paragraph. Which creates a blank line on the
screen.

Does anybody know how I can do this? Should I create a macro that changes
newline into softbreaks?

Thank you in advance for any help. Erik-Jan
Cindy M  -WordMVP- - 16 Jun 2005 15:51 GMT
Hi =?Utf-8?B?RXJpay1KYW4gVmVucw==?=,

> She makes the linebreaks by typing a newline. Through the Word HTML Filter
> program I am able to remove all the msonormal's. But every newline is
[quoted text clipped - 3 lines]
> Does anybody know how I can do this? Should I create a macro that changes
> newline into softbreaks?

I'd probably substitute some unique character for the Chr$(11) (Shift+Enter =
new line) in the document, then open the HTML source as a text file and use
find/replace to insert </BR>. (Or replace it using macro code.)

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.