From d47c84a5fd38c1aa28fe6e3144b4efd0226f8f97 Mon Sep 17 00:00:00 2001 From: Justin Luth Date: Wed, 21 Mar 2018 20:47:11 +0300 Subject: comment: Word does not use tabs in footnote implementation Tabs are inserted when LO exports to MS formats in an attempt to emulate its "magical" spacing which uses the paragraph margin. By default, the Footnote paragraph style has a paragraph margin of 0.60cm. A hanging indent places the footnote character before the margin, and thus a tab advances to the margin. So the emulation works well. The previous comment was misleading because it suggests that this was a Microsoft convention, but actually this is an OOo innovation. Change-Id: Ie8708998457bcb3363bbc760086cf2b41d3eb104 Reviewed-on: https://gerrit.libreoffice.org/51753 Tested-by: Jenkins Reviewed-by: Justin Luth Reviewed-by: Miklos Vajna --- writerfilter/source/dmapper/DomainMapper_Impl.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'writerfilter') diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.cxx b/writerfilter/source/dmapper/DomainMapper_Impl.cxx index 3526f8b38a69..7755480dffed 100644 --- a/writerfilter/source/dmapper/DomainMapper_Impl.cxx +++ b/writerfilter/source/dmapper/DomainMapper_Impl.cxx @@ -1827,9 +1827,9 @@ void DomainMapper_Impl::PushFootOrEndnote( bool bIsFootnote ) // Redlines for the footnote anchor CheckRedline( xFootnote->getAnchor( ) ); - // Word has a leading tab on footnotes, but we may implement space - // between the footnote number and text using a paragraph margin, not a - // tab (Writer default). So ignore that in case there is a margin set. + // LO inserts a tab when exporting to MS formats in order to emulate its automatic space + // between the footnote number and text using the paragraph margin. + // So ignore that tab when there is a margin set. uno::Reference xStylesSupplier( GetTextDocument(), uno::UNO_QUERY); uno::Reference xStyleFamilies = xStylesSupplier->getStyleFamilies(); uno::Reference xStyles; -- cgit