PC Review


Reply
Thread Tools Rate Thread

Blank lines in HTML code

 
 
John
Guest
Posts: n/a
 
      1st May 2004
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?
 
Reply With Quote
 
 
 
 
Stefan B Rusynko
Guest
Posts: n/a
 
      1st May 2004
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

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp
_____________________________________________


"John" <(E-Mail Removed)> wrote in message news:0af801c42f3f$26972020$(E-Mail Removed)...
| 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?


 
Reply With Quote
 
Andrew Murray
Guest
Posts: n/a
 
      2nd May 2004
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?



"John" <(E-Mail Removed)> wrote in message
news:0af801c42f3f$26972020$(E-Mail Removed)...
> 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?



 
Reply With Quote
 
Arnold Gao[MSFT]
Guest
Posts: n/a
 
      3rd May 2004
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.

 
Reply With Quote
 
Arnold Gao[MSFT]
Guest
Posts: n/a
 
      8th May 2004
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.

 
Reply With Quote
 
Arnold Gao[MSFT]
Guest
Posts: n/a
 
      10th May 2004
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.

 
Reply With Quote
 
Arnold Gao[MSFT]
Guest
Posts: n/a
 
      12th May 2004
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.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
code formatting: how to clean unnecessary blank lines? Andreas Bauer Microsoft C# .NET 4 6th Dec 2006 08:57 AM
Outlook preview shows 3 lines. Which 3 ?I see HTML code in some. =?Utf-8?B?aW5nVG9ueQ==?= Microsoft Outlook Discussion 1 2nd May 2006 06:04 PM
html white space/blank lines =?Utf-8?B?ZC5ydXRo?= Microsoft Frontpage 3 3rd Feb 2006 04:20 PM
Why do blank lines of HTML appear in Front Page? =?Utf-8?B?QnVkZHkgQmVhciAxMTA2?= Microsoft Frontpage 1 8th Feb 2005 08:19 PM
Inserting blank lines breaks lines of code BradC Microsoft VB .NET 3 8th Dec 2004 07:09 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:41 AM.