Bug 57641 - FILESAVE: "From Left" tables get set on left margin in XHTML export
Summary: FILESAVE: "From Left" tables get set on left margin in XHTML export
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.0.0.0.alpha1
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:4.0.0
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-28 06:09 UTC by callow.mark
Modified: 2012-11-29 21:05 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
Sample with "From Left" and "Left" tables (14.56 KB, application/vnd.oasis.opendocument.text)
2012-11-28 06:12 UTC, callow.mark
Details

Note You need to log in before you can comment on or make changes to this bug.
Description callow.mark 2012-11-28 06:09:49 UTC
In the .odt file "From Left" aligned tables are set at the left edge of the paragraph. "Left" aligned tables are set on the left margin, so they align with the exdented section numbers.

In the xhtml export, both types are set on the left margin. I'll provide a test case.
Comment 1 callow.mark 2012-11-28 06:12:27 UTC
Created attachment 70718 [details]
Sample with "From Left" and "Left" tables

This file contains two tables. The first is "From Left" aligned. The second is "Left aligned". File > Export > XHTML this file. Observe that both tables are set on the left margin whereas in the ODT file the "From Left" table aligns with the paragraph text.
Comment 2 Not Assigned 2012-11-29 21:03:29 UTC
Peter Jentsch committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=3f6946cfd7021dccdc3c2787442d20c168c197d1

fix fdo#57641 table alignment broken in XHTML export



The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds
Affected users are encouraged to test the fix and report feedback.
Comment 3 Peter Jentsch 2012-11-29 21:05:49 UTC
fixed on master, center alignment also fixed.