Created attachment 103808 [details] Word 2013 exported RTF I downloaded < http://download.microsoft.com/documents/customerevidence/Files/710000003670/Xiamen_Tungsten_Group_unifies_enterprise.docx > and opened it in Word 2013 and saved it as an rtf file. Then when opening the file in LibO 4.3.1, paragraph spacing isnt retained. This doesnt occur with the older 3.3.0 rtf importer. This spacing issue also effects the import of the original docx file into LibO and is reported in bug 77960.
Created attachment 103809 [details] Word 2013 VS LibO 4.3.1
Created attachment 103852 [details] 4.3.0.4 ubuntu pdf (no reproduce) Do not reproduce for me with 4.3.0.4, ubuntu 14.04 x64. See the exported PDF. The paragraph "统一化的产品数据管理" appears in the 2nd page because I do not have "Microsoft Yahei" font installed, so "Wenquanyi Zenhei" was used.
Please install Microsoft Yahei and then retest as i have it on my system. :)
Repro, with Microsoft Yahei installed. Windows 8.1 with LibreOffice Version: 4.4.0.0.alpha0+ Build ID: 6528607d34c9a2098ff5eec051fc9299ec37dfd7 TinderBox: Win-x86@39, Branch:master, Time: 2014-08-03_07:56:26
Created attachment 103912 [details] Repro, with Microsoft YaHei font installed
Could you please attach a more minimal document? The original bugdoc has 71 paragraphs, it would be nice to know exactly what paragraph is your problem. Also, is this specific to non-ASCII characters? If not, could you please change the reproducer to contain just ASCII characters? That would help me a lot. :-)
Hi Miklos, It effects every paragraph in the document. :D If you open the original .docx file in master, paragraph 1 has 14pt above and below, paragraph 2 has 7.5pt above and 14pt below and paragraph 3 has 18.7pt above and 14.0pt below. If you open the rtf file in master, paragraph 1 has 5pt above and below, paragraph 2 has 7.5pt above and 5pt below and paragraph 3 has 18.7pt above and 5pt below. I havent created this file, but believe it must have to do with the chinese character settings in the document.
Ah, because we ignore \s{a,b}auto on import, I'll implement that.
Miklos Vajna committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=bb77fd64f9219f1b8f990f5041d81cfddd021213 fdo#82006 RTF filter: import \sbauto and \saauto It will be available in 4.5.0. 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.
Pushed to -4-4: cgit.freedesktop.org/libreoffice/core/commit/?h=libreoffice-4-4&id=85086306939b6bebb8cf549966942f2e5a244388
libreoffice-4-3 review: https://gerrit.libreoffice.org/13054
Migrating Whiteboard tags to Keywords: (BibisectRequest, filter:rtf) Remove redundant 'rtf_filter'. [NinjaEdit]
First paragraph has got zero top margin in MSO, see the attached composite layouts in MSO (red) and LibreOffice before (black) and after fixing (green). It needs to resolve this (solution in tdf#107480) and modify the regression test "testFdo82006" of this issue. Note: also left margin position has got still some problem in LibreOffice master.
Created attachment 143268 [details] first paragraph needs zero top margin (RED: MSO, BLACK: recent LO, GREEN: fixed LO)
Please don't reopen a bug from 2014, instead open a follow-up bug, then the whiteboard of that bug will properly track what branches will have your fix. Thanks!
(In reply to Miklos Vajna from comment #15) > Please don't reopen a bug from 2014, instead open a follow-up bug, then the > whiteboard of that bug will properly track what branches will have your fix. > Thanks! Sorry, Miklós, I've filed the bug 118533 for it. Thanks for your advice!