Bug 70076 - FILESAVE: DOCX Export of vertical text-box turns text alignment from 'middle' to 'top'
Summary: FILESAVE: DOCX Export of vertical text-box turns text alignment from 'middle'...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.2.0.0.alpha0+ Master
Hardware: Other All
: medium normal
Assignee: Tamás Zolnai
URL:
Whiteboard: BSA
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-03 14:09 UTC by Adam CloudOn
Modified: 2014-03-06 14:31 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
DOCX containing vertical text-box (23.22 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2013-10-03 14:09 UTC, Adam CloudOn
Details
DOCX exported by LO with text aligned to 'top' and with extra newline (7.56 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2013-10-03 14:23 UTC, Adam CloudOn
Details
Screenshot comparison between original DOCX and exported DOCX (70.78 KB, image/png)
2013-10-03 14:25 UTC, Adam CloudOn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Adam CloudOn 2013-10-03 14:09:31 UTC
Created attachment 87032 [details]
DOCX containing vertical text-box

Problem description: 
When you load a DOCX that contains a vertical text-box, LO exports it back to DOCX and the alignment of text inside the text-box changes from 'middle' to 'top' (probably the default).
Also - there is an extra newline inside the text-box.

Steps to reproduce:
1. Load attached DOCX in LO
2. Save as NEW.DOCX
3. Load NEW.DOCX in Word
4. Vertical text-box now has 'top' vertical alignment instead of 'middle' and also there is an extra new-line inside the text.

Current behavior:
LO exports vertical text-box with vertical alignment as 'top' instead of 'middle' and it also has an extra new-line.

Expected behavior:
LO should export vertical text-box with vertical alignment as 'middle' and without the extra new-line.
              
Operating System: All
Version: 4.2.0.0.alpha0+ Master
Comment 1 Adam CloudOn 2013-10-03 14:23:11 UTC
Created attachment 87042 [details]
DOCX exported by LO with text aligned to 'top' and with extra newline
Comment 2 Adam CloudOn 2013-10-03 14:25:59 UTC
Created attachment 87043 [details]
Screenshot comparison between original DOCX and exported DOCX
Comment 3 tommy27 2013-10-06 21:10:50 UTC
hi, what is the difference between Bug 70076 and Bug 70075?
Comment 4 Adam CloudOn 2013-10-06 21:14:44 UTC
(In reply to comment #3)
> hi, what is the difference between Bug 70076 and Bug 70075?

Bug 70075 is about the import filter - when importing the DOCX into LO - the document looks wrong.

Bug 70076 is about exporting back to DOCX - the exported file looks differet than the original in Word (information loss).
Comment 5 tommy27 2013-10-06 21:24:10 UTC
thanks Adam. I've read summary too quickly and did not notice the import/export difference.
Comment 6 Jorendc 2013-10-07 22:14:32 UTC
:-) NEW right away.
Comment 7 Tamás Zolnai 2014-03-06 14:31:19 UTC
Export is done by this commit:
http://cgit.freedesktop.org/libreoffice/core/commit/?id=718203e37025fc1cc1e28f9e52f05bee79684811