To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=72683
Issue #|72683
Summary|ooweb HTML source file formatting unacceptable
Component|Word processor
Version|OOo 2.0.2
Platform|All
URL|
OS/Version|All
Status|UNCONFIRMED
Status whiteboard|
Keywords|
Resolution|
Issue type|DEFECT
Priority|P3
Subcomponent|save-export
Assigned to|mru
Reported by|whitis
------- Additional comments from [EMAIL PROTECTED] Sun Dec 17 15:39:59 -0800
2006 -------
ooweb (and probably writer, too) produces HTML source files with unacceptable
formatting. Formatting should be better to start with and configurable. This
makes ooweb unusable to serious web page authors.
Formatting Rules:
- 80 character maximum line length, except where this would break an HTML tag
(i.e. some URLs are too long)
- If a start tag and end tag can both fit on the same line, the program may
put them on the same line
- otherwise, each start tag and end tag will appear on a line by themselves
at the current indentation level, with the end tag directly below the start
tag. Whatever occurs between the two, will be on lines in between,
indented by an additional indentation increment.
I.E.
<body>
<P>
...............
...............
</P>
- indentation increment: 3 by default, configurable 2,3, or 4 user preference.
- indentation exceptions:
<HTML> and <BODY> tags
"<!-- template" tag
Otherwise everything in the body of the document is indented two tab stops.
- Preserve original indentation in unedited sections unless told to do
otherwise, if at all possible
- contents of <PRE> tags are not indented
- Do not add style information unless explicitly added by user
- Do not omit end tags (ooweb omits </LI> tags which were originally present)
- indent using spaces, not tabs
Some programs, such as HTML tidy, make the mistake of using the following
indentation style:
<P>.......................
..........................
..................</P>
while this preserves vertical space, it quickly becomes untennable when tags
are nested.
Here is a very small sample of defective source code Produced by ooweb:
<UL>
<LI><P STYLE="margin-bottom: 0in">Firefox Web Browser: <A
HREF="http://www.mozilla.org/">[Website]
</A><A
HREF="http://download.mozilla.org/?product=firefox-2.0&os=win&lang=en-US">[Net]
</A><A HREF="Firefox%20Setup%202.0.exe">[Local] </A><BR>Platforms:
Linux, Windoze, MacOSX
</P>
<LI><P STYLE="margin-bottom: 0in">Thunderbird Email Client:
<A HREF="http://www.mozilla.org/">[Website] </A><A
HREF="http://download.mozilla.org/?product=thunderbird-1.5.0.8&os=win&lang=en-US">[Net]
</A><A HREF="Thunderbird%20Setup%201.5.0.8.exe">[Local]
</A><BR>Platforms:
Linux, Windoze, MacOSX
</P>
<LI><P>Opera Web Browser <A HREF="http://www.opera.com/">[Website]
</A><A
HREF="http://www.opera.com/download/get.pl?id=28417&location=141¬hanks=yes⊂=marine">[Net]
</A><A HREF="Opera_9.02_Eng_Setup.exe">[Local] </A><BR>Free
commercial product, displays a small ad bar <BR>Platforms: Linux,
Windoze, MacOS, Solaris, QNX, OS/2, FreeBSD, BeOS, some portable
devices
</P>
</UL>
This is unreadable.
The original, correct formatting:
<UL>
<LI>
<SPAN CLASS="pkgtitle">Firefox</SPAN> Web Browser:
<A HREF="http://www.mozilla.org/">
[Website]
</A>
<A
HREF="http://download.mozilla.org/?product=firefox-2.0&os=win&lang=en-US">
[Net]
</A>
<A HREF="Firefox Setup 2.0.exe">
[Local]
</A>
<BR>Platforms: Linux, Windoze, MacOSX
</LI>
<LI>
<SPAN CLASS="pkgtitle">Thunderbird</SPAN> Email Client:
<A HREF="http://www.mozilla.org/">
[Website]
</A>
<A
HREF="http://download.mozilla.org/?product=thunderbird-1.5.0.8&os=win&lang=en-US">
[Net]
</A>
<A HREF="Thunderbird Setup 1.5.0.8.exe">
[Local]
</A>
<BR>Platforms: Linux, Windoze, MacOSX
</LI>
<LI>
<SPAN CLASS="pkgtitle">Opera</SPAN> Web Browser
<A HREF="http://www.opera.com/">
[Website]
</A>
<A
HREF="http://www.opera.com/download/get.pl?id=28417&location=141¬hanks=yes&sub=marine">
[Net]
</A>
<A HREF="Opera_9.02_Eng_Setup.exe">
[Local]
</A>
<BR>Free commercial product, displays a small ad bar
<BR>Platforms: Linux, Windoze, MacOS, Solaris, QNX, OS/2, FreeBSD, BeOS,
some portable devices
</LI>
</UL>
The sample was part of an HTML file that was loaded into ooweb, was not edited,
and was then saved.
Oh, and the reason for the "<!-- template rule, is illustrated as follows:
<!-- template
<LI>
<SPAN CLASS="pkgtitle"></SPAN>
<A HREF="">
[Website]
</A>
<A HREF="">
[Net]
</A>
<A HREF="">
[Local]
</A>
<BR>Platforms:
</LI>
-->
The samples above were created by copying and editing this template. If the
comment is indented as usuall, all the tags inside the template are now at
the wrong indentation level.
Personal preferences about html formatting may vary, but I have been using these
rules for a decade (since HTML 1.0).
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]