Blank lines in HTML code

J

John

I'm not sure what I did to deserve this, but FrontPage
has automatically inserted over 90,000 blank lines in the
HTML code for the index.htm file on my website. I tried
using the HTML Optimization, but it either took out all
lines (ruined the page) or took out none (removing
whitespace). The only thing that seems to have any
possibility of reducing the page from its current 8+MB
size (used to be around 20K) is deleting the blank lines
ONE AT A TIME. Anyone have any ideas on how to get rid
of them all at once, without destroying the formatting of
the page?
 
S

Stefan B Rusynko

If using FP 2003
Tools Page Options Code Formatting and select Reset (to restore the system defaults)
Then open your Page and try right clicking to Reformat Html

--




| I'm not sure what I did to deserve this, but FrontPage
| has automatically inserted over 90,000 blank lines in the
| HTML code for the index.htm file on my website. I tried
| using the HTML Optimization, but it either took out all
| lines (ruined the page) or took out none (removing
| whitespace). The only thing that seems to have any
| possibility of reducing the page from its current 8+MB
| size (used to be around 20K) is deleting the blank lines
| ONE AT A TIME. Anyone have any ideas on how to get rid
| of them all at once, without destroying the formatting of
| the page?
 
A

Andrew Murray

can't you select with the mouse and/or arrow keys the whitespace/blank lines and
press "Delete" ? It may obviously take a while to delete 90,000 line, but I
don't see any other way - maybe select the content of your page, cut/paste into
a new file, then save-as the same file name - that way overwriting the 'old' file
that has the 90,000 lines in it?
 
A

Arnold Gao[MSFT]

Hi John,

Please copy/paste the HTML contents to antoher new page in FrontPage.

Hope it helps.

Sincerely,

Arnold Gao

Microsoft Partner Online Support


Get Secure! - www.microsoft.com/security

====================================================
When responding to posts, please "Reply to Group" via
your newsreader so
that others may learn and benefit from your issue.
====================================================
This posting is provided "AS IS" with no warranties, and
confers no rights.
 
A

Arnold Gao[MSFT]

Hi John,

Just a supplment to my reply. ;)

If possible, would you please attach the html file to the newsgroup after
compression? I would like to perform some research for you on this issue.

Thank you for your time. Have a nice day!

Sincerely,

Arnold Gao

Microsoft Partner Online Support


Get Secure! - www.microsoft.com/security

====================================================
When responding to posts, please "Reply to Group" via
your newsreader so
that others may learn and benefit from your issue.
====================================================
This posting is provided "AS IS" with no warranties, and
confers no rights.
 
A

Arnold Gao[MSFT]

Hi John,

Please check the following points:

1. Check what HTML Optimization function did the customer use. The one in
FrontPage or you use a third-party HTML optimization tool.

2. Please check Tools->Page Options->Code formatting, press Reset button.

3. Does the issue only occur on one special file?

We look forward to your reply.

Sincerely,

Arnold Gao

Microsoft Partner Online Support


Get Secure! - www.microsoft.com/security

====================================================
When responding to posts, please "Reply to Group" via
your newsreader so
that others may learn and benefit from your issue.
====================================================
This posting is provided "AS IS" with no warranties, and
confers no rights.
 
A

Arnold Gao[MSFT]

Hi Jon,

I did some further research on it and please try the following suggestions:

Open the page and go to code view (or select the page in the folder view
and check "source code" in the dialog). Using find and replace, on the
regular expressions dropdown next to the find box select "Beginning of line
(^)" and then press "Shift+Enter" (this will put a new line character) in
the find box. Leave the replace box blank. This will remove all instances
of empty lines.

Hope it helps.

Sincerely,

Arnold Gao

Microsoft Partner Online Support


Get Secure! - www.microsoft.com/security

====================================================
When responding to posts, please "Reply to Group" via
your newsreader so
that others may learn and benefit from your issue.
====================================================
This posting is provided "AS IS" with no warranties, and
confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top