Focal Point
Reformatting HTML

This topic can be found at:
http://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/5211008331

September 10, 2004, 01:59 PM
wfsharon
Reformatting HTML
Can anyone explain why WF has a need to put a LOT of white space (CR/LF?) in my html pages when I save them in Developer Studio?

I'm not using the Resource tool directly - just handcrafting html pages from scratch (based on existing documentation examples and code output form the Resource tool.)

I find this quite annoying. I would rather not have to use a separate editor just for this...

Do folks out there just live with it?
September 10, 2004, 02:20 PM
<Pietro De Santis>
We just live with it!

Here's something even more annoying:

Using an external text editor (my favourite: EditPlus) you could handcraft a beautiful looking WebFOCUS program, with blank lines to separate sections and indentations to clarify the code. Open it up as source code in Developer Studio, and all the blank lines have been deleted and everything is left-justified.
September 10, 2004, 02:53 PM
Lenny Ward
In 5.3 you will be able to use your editor of
choice in Dev Studio
September 14, 2004, 06:04 PM
susannah
SET PAGE=NOLEAD
or..
ON TABLE SET PAGE NOLEAD
will nuke the leading two blank lines at the top of the html output.(but maybe that's not what you're talking about??)
In writing code, i use the editor in MRE and have no problems with blank lines or indentations. All are respected. I often use TextPad for line numbering, the only complaint i have with the ibi editor. I sometimes edit an html launch page right from within 525 MRE, using Edit Source, and again, no problems. Is MRE an option for you?
I use old HomeSite for an alternative editor for html pages, [frontpage changes your code for you, although they say fp 2003 doesn't do that anymore]. Homesite per se isn't around anymore.its incorporated into macromedia now.
September 20, 2004, 04:06 PM
wfsharon
Thanks, all!

I am going to use Visual Studio or TextPad (for now), but would obviously prefer not to have to bounce around editors.

Susan, the problem isn't the two blank lines at the top. I keep my html pages separate from my fex's (-HTMLFORM webpage). We also don't use MRE. What seesm to be happening is that if WF finds a blank line, it adds one (or two) more! No whitespace, no added whitespace. I like my whitespace, but not to the extent of what I get when I let Dev Studio save my html files! Frowner

btw, Susan, I thoroughly enjoyed your session at last Friday's FUN, and, more importantly, the informal chat and informational tidbits afterwards. Thanks!