Focal Point
[SOLVED] HTML Composer Code Reformatting

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

May 30, 2012, 09:37 AM
Euclid
[SOLVED] HTML Composer Code Reformatting
Is there a way to prevent HTML Composer from reformatting the source code? It keeps stripping out all tabs, capitalizes html attributes, removes double quotes from attribute values and reformats javascript. I know this seems picky, but it makes it a bit difficult to trace through old or current code. Would my only option be to go from Notepad++ or some text editor, copy and paste the code into Html Composer, run the code, and then make changes in Notepad++ again?

While writing this up I got the idea that the reason the code gets botched is for html validation before runtime?

This message has been edited. Last edited by: Euclid,


Developer Studio 7.7.02
Windows XP Pro SP3 and Windows 7 64bit
all output
May 30, 2012, 10:49 AM
njsden
quote:
Would my only option be to go from Notepad++ or some text editor, copy and paste the code into Html Composer, run the code, and then make changes in Notepad++ again?


You've nailed it! That's seems to be the case in my experience ... well, I actually stopped fighting it and just decided to leave it as the tool likes it Frowner



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
May 30, 2012, 10:56 AM
Euclid
I was thinking that would be my only option. Another thing to "live with" in WebFocus.

@njsden Thank you for the reply.


Developer Studio 7.7.02
Windows XP Pro SP3 and Windows 7 64bit
all output
May 30, 2012, 01:37 PM
Norb Eckert
What you are seeing done to the code is why the tool is affectionately known as "HTML Composter".

Ohhhhhhhh - that makes me laugh every time. Razzer


prod:7.6.9, win2k3 mre, caster, bid, devstudio 7.6.9
May 30, 2012, 03:44 PM
Euclid
"HTML Composter" what an awesome play on words. Just as good as "Internet Exploader".

I was fighting the code reformatting issue with our CMS a few months back. The CMS was doing HTML validation which was destroying the formatting and I would bet a beer that the Composter is doing the same thing.


Developer Studio 7.7.02
Windows XP Pro SP3 and Windows 7 64bit
all output
May 31, 2012, 07:25 AM
David Glick
As the Product Manager of the HTML Composer, we do not write the HTML. We call a Microsoft facility that writes it and it writes valid HTML.


David Glick
Director WebFOCUS App Studio
and WebFOCUS Developer Studio
WebFOCUS Division
Information Builders, Inc.
Direct (917) 339-5560
Voice Mail (212) 736-6250 x3560
Fax (212) 947-5168
Email david_glick@ibi.com