?
Solved

FP HTML editor keeps inserting spaces (&_nbsp_;)

Posted on 2002-06-06
9
Medium Priority
?
175 Views
Last Modified: 2013-12-24
Hi,

I have a DB result set from which I pull out a number, like this:  <td><%=rs("Num")%>&nbsp;</td>
I need to get rid of the blank space (&_nbsp_;) in that cell which FrontPage automatically inserts after I save the file.  Even though I have the "Preserve existing HTML" option checked.

Any help?
Thanks in advance.
0
Comment
Question by:tonejunkie
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 3
9 Comments
 
LVL 1

Expert Comment

by:Wrdslngr
ID: 7060539
The only way I've ever been able to eliminate the FrontPage trash code is to finish the site, then do a global replace, replacing &nbsp; with nothing in the lower box.  If you select ALL PAGES and FIND IN HTML, the replace tool will go through the entire site and eliminate the trash (at least until the next time you open that page).  ;-)~~
0
 
LVL 1

Expert Comment

by:Wrdslngr
ID: 7060548
Before I forget to say so...

Always make sure you have published a copy of the site locally prior to doing a global replace, just in case.  ;-)
0
 
LVL 6

Expert Comment

by:jdfulton
ID: 7061746
tonejunkie,

Create a macro using this code.  This macro searches for the <TD> tag, removes the
&nbsp; (space), and sets the height of the cell at 9.  This should take care of the problem.


Sub TableDeSpacer()
  With ActiveDocument
  For i = 0 To .all.Length - 1
  If UCase(.all(i).tagName) = "TD" Then
  If .all(i).innerHTML = "&nbsp;" Then
  .all(i).Height = 9
  End If
  End If
  Next
  End With
  End Sub
0
Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

 
LVL 1

Author Comment

by:tonejunkie
ID: 7061762
I guess I'm looking for more of an option in FrontPage settings which would disable any automatic code changes.  And "Preserve existing HTML" obviously doesn't work.  But the only thing I've come up with was to finish the page, and then open it in Notepad to get rid of the extra crap FrontPage throws in.  Which is almost as annoying as having to code around it.

What a waste of a product this thing is.  :)
0
 
LVL 6

Accepted Solution

by:
jdfulton earned 320 total points
ID: 7061935
The reason why Frontpage does this is to show the table outlines in the design view.  I know it does suck, I usually don't have a problem with the spacing.  All you can do is work around it or not use it.  The macro does work well so give it a shot.
0
 
LVL 1

Author Comment

by:tonejunkie
ID: 7069628
Well I need some of the spaces to stay in, but I need to get rid of some.  So I guess there is no solution to this question.
0
 
LVL 1

Author Comment

by:tonejunkie
ID: 7069629
Since there is no solution, there is no answer.
0
 
LVL 6

Expert Comment

by:jdfulton
ID: 7069722
tonejunkie,

You can use the macro in the same way to add spaces.
0
 
LVL 1

Expert Comment

by:Wrdslngr
ID: 7069738
Just guessing, but if you're looking for a way to get an answer that will FIX FrontPage problems with trash code...you should call Microsoft.  All we can do as end users is recommend work-arounds we've had to use ourselves.  It looks like the Macro will work, I know the replace option works to accomplish the same thing in a different way...but we can't fix the original problem with the software.  Sorry.
0

Featured Post

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Now that Expression Web 4.0 (http://www.microsoft.com/expression/products/Upgrade.aspx) is free if you buy or have the full version of Expression Web 3.0, now is the best time to  migrate from FrontPage to Expression Web (http://www.frontpage-to-exp…
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question