The trick is to figure out what the problems are and then apply those fixes to 
all your pages using BBEdit's multi-file search/replace. However, finding the 
errors is easier than fixing them. 

This pattern "<font.*?>\s*<font" will find a nested font tag. However, to fix 
it you need to merge the parameters. In your example you'd want to end up with 
<font size="3" face="Verdana,...">. If this same nested pair occurs a lot then 
you can search/replace it. There probably are only so many combinations 
throughout your site.

The pattern "<([a-zA-Z0-9]+ .*)>\s*<\1>" will find an instance of one tag 
followed immediately by the same tag with the same parameters. The internal tag 
is unnecessary, but automatically deleting the tag without affecting the 
nesting is difficult. You can also do this <div> specific by hardcoding the 
first part of the pattern "<(div .*)>\s*<\1>"

As someone else mentioned what you might consider is modernizing the code 
generally. If you search for that face="Verdana..." string you'll probably find 
that it has been inserted many times in your code. Instead you can create a 
class in your CSS and work through the site applying that style to a new <span> 
or even to the surrounding <div> and cleaning out the old code. That will make 
a more maintainable site moving forward. 

[fletcher]


> On Feb 20, 2017, at 9:22 AM, James Lee <purdue...@gmail.com> wrote:
> 
> I still have some code created buy Adobe GoLive editing. There seems to have 
> been a flaw that caused duplicate vids and extra spaces so the pages have 
> become almost impossible to edit.  Here is an example:
> -----
>                                                                               
>                 <div align="left">
>                                                                               
>                         <p><font size="4" 
> face="Verdana,arial,helvetica,sans-serif"><font size="3"><strong>"One of the 
> greatest discoveries a man makes, one of his great surprises, is to find he 
> can do what he was afraid he couldn't do." - Henry 
> Ford</strong></font></font></p>
>                                                                               
>                 </div>
>                                                                               
>         </div>
>                                                                               
> </div>
>                                                                       </div>
>                                                               </div>
>                                                       </div>
>                                               </div>
> -----
> This index file is not very wide (feet, not inches).  I am hoping BBEdit has 
> some tricks I have yet to find to fix this problem. Ir maybe there is a way 
> to go back to Adobe GoLive and fix them.  Any ideas would be appreciated.
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or would like to report a problem, please email
> "supp...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter: <http://www.twitter.com/bbedit 
> <http://www.twitter.com/bbedit>>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+unsubscr...@googlegroups.com 
> <mailto:bbedit+unsubscr...@googlegroups.com>.
> To post to this group, send email to bbedit@googlegroups.com 
> <mailto:bbedit@googlegroups.com>.
> Visit this group at https://groups.google.com/group/bbedit 
> <https://groups.google.com/group/bbedit>.

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.

Reply via email to