Issue 45969 - hidden section always appears in docs exported as HTML
Summary: hidden section always appears in docs exported as HTML
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: save-export (show other issues)
Version: OOo 1.0.0
Hardware: PC All
: P4 Normal with 4 votes (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-24 19:37 UTC by dyksterhouse
Modified: 2014-04-07 12:16 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: 4.1.0-dev
Developer Difficulty: ---


Attachments
SXW file with conditional section showing issue (5.46 KB, application/vnd.sun.xml.writer)
2005-03-24 19:40 UTC, dyksterhouse
no flags Details
Exported HTML file (850 bytes, text/html)
2005-03-24 19:41 UTC, dyksterhouse
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description dyksterhouse 2005-03-24 19:37:48 UTC
Create a SXW document.  Enter:

========= TOP ========
[Set variable xxx = 1]
A
------- Cond Section Start ------
B
------- Cond Section End ------
C
========= BOTTOM ========

where "B" is in a conditional section that is hidden when "xxx" is true.  Do
this by Inserting a Section with the Hide checkbox checked and With Condition
set to "xxx".  Set the Field Variable "xxx" to 1 (true).  On-screen, the "B"
line disappears.

Then do File|Save As... and save the file as an HTML file.  The "B" line appears
in the HTML document.  Note that conditional text fields do NOT appear in the
HTML (as expected).

Thanks for listening.
Comment 1 dyksterhouse 2005-03-24 19:40:42 UTC
Created attachment 24265 [details]
SXW file with conditional section showing issue
Comment 2 dyksterhouse 2005-03-24 19:41:31 UTC
Created attachment 24266 [details]
Exported HTML file
Comment 3 michael.ruess 2005-03-29 07:32:59 UTC
MRU->ES: does HTML support hidden contents?
Comment 4 dyksterhouse 2005-04-04 18:35:30 UTC
My 2 cents...

To be consistent with conditional text fields, conditional sections should just
be dropped from the export to HTML.  Also, this is how "Export as PDF" handles
both hidden text and sections.
Comment 5 eric.savary 2005-04-22 06:46:03 UTC
Reassigned
Comment 6 rsponsel 2006-08-03 17:20:28 UTC
I can confirm this. This issue has annoyed me since OOo 1.x . I usually need to
make a document available in multiple formats, one of them is HTML (so it can be
easily viewed in a browser), and due to this bug I always have to remember to
make a temporary copy of the original document after having modified it, open
it, delete any hidden sections, and finally save it as HTML. This is a real bugger.

I agree with the reporter that hidden sections should just be dropped from the
exported HTML.
Comment 7 unoengborg 2006-08-03 18:55:32 UTC
Linux also have the same issue.

I'm also find the issue type "Enhancement" a bit strange. Most users would
probably think this is a bug, as it would be quite possible to hide text in html
using styles.
Comment 8 ecergo 2012-09-01 01:23:41 UTC
Confirmed in OOo 3.4.0
Comment 9 Edwin Sharp 2014-04-07 12:16:51 UTC
As given in description
AOO410m15(Build:9761)  -  Rev. 1583666
2014-04-01 13:50 - Linux x86_64
Debian