Bug 108034 - FILESAVE ODT->DOC/X Template Resume moves sections-inside-column outside of the column.
Summary: FILESAVE ODT->DOC/X Template Resume moves sections-inside-column outside of t...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.3.3.2 release
Hardware: All All
: medium minor
Assignee: Laurent Balland
URL:
Whiteboard: target:25.2.0
Keywords: filter:doc
Depends on:
Blocks: DOC
  Show dependency treegraph
 
Reported: 2017-05-23 17:05 UTC by dshuffin
Modified: 2024-08-29 21:56 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
File just created (22.33 KB, application/pdf)
2017-05-29 11:03 UTC, webberalessandro
Details
File saved and reopened (29.45 KB, application/pdf)
2017-05-29 11:04 UTC, webberalessandro
Details
Resume saved as .doc (13.50 KB, application/msword)
2017-05-31 18:03 UTC, Buovjaga
Details
in-columnContinuousSectionBreak.docx: created by MS Word 2016 (11.52 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2020-07-23 10:56 UTC, Justin L
Details
Proposed modified Resume template (18.44 KB, application/vnd.oasis.opendocument.text-template)
2024-08-14 08:01 UTC, Laurent Balland
Details
Proposed modified Resume template (18.44 KB, application/vnd.oasis.opendocument.text-template)
2024-08-29 19:08 UTC, Laurent Balland
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dshuffin 2017-05-23 17:05:22 UTC
Description:
A new document created from template "Resume" has broken layout after being saved to word (2003) format.

Steps to Reproduce:
1. Create a new Writer document from a built-in template "Resume"
2. Save the file as .doc (office 2003)
3. Exit writer
4. Open the just saved file - the layout of the file is different if compared with the original template

Actual Results:  
The layout of the file is broken. It doesn't lokk the same as before savingto .doc format

Expected Results:
The file should look the same after being opened, as it was before saving


Reproducible: Always

User Profile Reset: No

Additional Info:
Windows 10 Pro x64 15063.296


User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36
Comment 1 webberalessandro 2017-05-29 11:02:30 UTC Comment hidden (obsolete)
Comment 2 webberalessandro 2017-05-29 11:03:39 UTC Comment hidden (obsolete)
Comment 3 webberalessandro 2017-05-29 11:04:33 UTC Comment hidden (obsolete)
Comment 4 Buovjaga 2017-05-31 18:03:07 UTC
Created attachment 133757 [details]
Resume saved as .doc

Note that the template is Resume, not CV.

The template has 3 sections. In the doc, they are 6 and some of them slip below the contact infos.

Arch Linux 64-bit, KDE Plasma 5
Version: 5.5.0.0.alpha0+
Build ID: 963137415bcdf3e7a26ce5d258302f4e39e294db
CPU threads: 8; OS: Linux 4.11; UI render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on May 31st 2017
Comment 5 QA Administrators 2018-06-01 02:17:25 UTC Comment hidden (obsolete)
Comment 6 dshuffin 2018-06-01 22:28:17 UTC
The bug is still present in:

Version: 6.0.4.2 (x64)
Build ID: 9b0d9b32d5dcda91d2f1a96dc04c645c450872bf
CPU threads: 4; OS: Windows 10.0; UI render: default; 
Locale: ru-RU (ru_RU); Calc: group
Comment 7 QA Administrators 2019-06-02 03:00:33 UTC Comment hidden (obsolete, spam)
Comment 8 Justin L 2020-06-11 18:28:49 UTC
Well, there actually are six or seven sections, because every space in between two sections is actually another section (since MSO doesn't pyramid sections like LO does). So the number of sections isn't a problem.

I guess it would have to be proven that MS Word can produce a similar layout using sections. I wouldn't be surprised if it is impossible for MSO to have a section in a column. [I just tried with Word 2003, and a continuous section break takes me out of the column - just like LO did.]

So this looks like a limitation of using MS formats. I'd say NOTABUG, although it could be argued that LO shouldn't supply a template design that exports to other formats so poorly - and so take the bug report in that direction.
Comment 9 Buovjaga 2020-06-13 11:59:05 UTC
(In reply to Justin L from comment #8)
> I guess it would have to be proven that MS Word can produce a similar layout
> using sections. I wouldn't be surprised if it is impossible for MSO to have
> a section in a column. [I just tried with Word 2003, and a continuous
> section break takes me out of the column - just like LO did.]

I tried this with MSO 2013. I am able to create a continuous section break in a column without it disturbing the column structure. Saving as DOCX and DOC preserves the structure.
Comment 10 Justin L 2020-07-23 10:56:04 UTC
Created attachment 163446 [details]
in-columnContinuousSectionBreak.docx: created by MS Word 2016

I did a bit more review into what LO and Word can do in terms of sections/columns - and they seem to act fairly similar.


In LO's resume template, multiple sections are staying in the right column. So how is the template doing it? I tried to reproduce that in LO with just using sections, and was unable to do that.

Well, it is doing it through a unique LO capability of specifying columns in the page style - which takes first priority. Then, sections can split that apart into one more set of columns after that. MS Word has NOTHING like that, so on export we turn page-style-columns into a section. As I mentioned in comment 8, and as confirmed by the previous paragraphs, sections alone cannot accomplish this layout.

LO's Page styles / columns in page styles is a major departure from the MS way of doing things - so this resume template is impossible to export nicely to non-ODT formats.
Comment 11 QA Administrators 2022-07-24 03:31:42 UTC Comment hidden (obsolete, spam)
Comment 12 Justin L 2022-08-12 15:53:36 UTC
Laurent: thought you might be interested in this one. It could use a re-design so that it can export well into other formats. The ability to look good in MS formats should be a "QA checklist" on templates design I would think. Is there such a checklist documented?
Comment 13 QA Administrators 2024-08-12 03:13:16 UTC Comment hidden (obsolete, spam)
Comment 14 Laurent Balland 2024-08-13 15:51:56 UTC
I do reproduce with Version: 24.2.5.2 (X86_64) / LibreOffice Community
Build ID: d6e8b0f3fc6e8af2b00cf4969fd0d2fa45b9a62e
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Calc: threaded
Comment 15 Laurent Balland 2024-08-13 16:05:37 UTC
Sections seem used to create 2 subcolumns in the right column.
I propose to replace them with tables. Have anyone a better advice?
Comment 16 Laurent Balland 2024-08-14 08:01:34 UTC
Created attachment 195820 [details]
Proposed modified Resume template

This proposition preserves the same design as previous template. It is using three tables on right column to replace sections badly exported to MS Word formats. It works well in A4 and Letter page format.
I replaced "Your name" with author's name field.

Change: https://gerrit.libreoffice.org/c/core/+/171849
Comment 17 Laurent Balland 2024-08-14 08:03:39 UTC
@Heiko: this template may also benefit from a complete redesign
Comment 18 Justin L 2024-08-15 11:28:14 UTC
(In reply to Laurent Balland from comment #16)
> I replaced "Your name" with author's name field.
Probably not a good idea? Most installations will have this blank, so it will be "invisible".
Comment 19 Laurent Balland 2024-08-29 19:08:03 UTC
Created attachment 196102 [details]
Proposed modified Resume template

New proposition with "Your Name" preserved
Comment 20 Commit Notification 2024-08-29 21:16:33 UTC
Laurent Balland committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/21c9751b56e3bd238369414cbf25c08fdda9f6c3

tdf#108034 Resume Writer template

It will be available in 25.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.