Bug 70076

Summary: FILESAVE: DOCX Export of vertical text-box turns text alignment from 'middle' to 'top'
Product: LibreOffice Reporter: Adam CloudOn <rattles2013>
Component: WriterAssignee: Tamás Zolnai <zolnaitamas2000>
Status: RESOLVED FIXED    
Severity: normal CC: barta, ikuya, jorendc, vmiklos
Priority: medium    
Version: 4.2.0.0.alpha0+ Master   
Hardware: Other   
OS: All   
See Also: https://bugs.freedesktop.org/show_bug.cgi?id=70075
Whiteboard: BSA
Crash report or crash signature: Regression By:
Attachments: DOCX containing vertical text-box
DOCX exported by LO with text aligned to 'top' and with extra newline
Screenshot comparison between original DOCX and exported DOCX

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