• Miklos Vajna's avatar
    tdf#90611 DOCX import: fix missing paragraph style on footnotes · 519b3430
    Miklos Vajna yazdı
    One one hand, a problem since commit
    330b8602 (fdo#68787 DOCX import: handle
    when w:separator is missing for footnotes, 2013-09-04) was that the type
    attribute from <w:footnote w:type="separator"> resulted in two
    ooxml:CT_FtnEdn_type tokens, ignoring too many paragraph ends for
    footnotes, which resulted in missing paragraph style on footnotes.
    
    On the other hand, fixing the first problem showed that it wasn't
    correct that commit 9389cf78 (cp#1000018
    RTF import: empty para at the end of footnote text got lost, 2013-11-15)
    unconditionally removed the RemoveLastParagraph() call in
    DomainMapper_Impl::PopFootOrEndnote(). It turns out that RTF and DOCX
    have different semantics here, the footnote is always within a <p></p>
    pair in DOCX, while in RTF a \par at the end of a
    footnote means an empty paragraph. Fix that by conditionally restoring
    the removed RemoveLastParagraph() call.
    
    Change-Id: I33020ac761c94addfec8164a17863565e4453b07
    519b3430
Adı
Son kayıt (commit)
Son güncelleme
..
documentation Loading commit data...
inc Loading commit data...
qa Loading commit data...
source Loading commit data...
util Loading commit data...
CppunitTest_writerfilter_misc.mk Loading commit data...
CppunitTest_writerfilter_rtftok.mk Loading commit data...
CustomTarget_source.mk Loading commit data...
Library_writerfilter.mk Loading commit data...
Makefile Loading commit data...
Module_writerfilter.mk Loading commit data...
README Loading commit data...