summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Luth <justin_luth@sil.org>2018-03-21 20:47:11 +0300
committerMiklos Vajna <vmiklos@collabora.co.uk>2018-03-23 08:53:38 +0100
commitd47c84a5fd38c1aa28fe6e3144b4efd0226f8f97 (patch)
treee0ea192a4dbfe249d23c0092e0c602a0522b01fc
parent327fd7ea7209c9131ac86757fa8d5ca925eeccb5 (diff)
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 <ci@libreoffice.org> Reviewed-by: Justin Luth <justin_luth@sil.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
-rw-r--r--writerfilter/source/dmapper/DomainMapper_Impl.cxx6
1 files changed, 3 insertions, 3 deletions
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<style::XStyleFamiliesSupplier> xStylesSupplier( GetTextDocument(), uno::UNO_QUERY);
uno::Reference<container::XNameAccess> xStyleFamilies = xStylesSupplier->getStyleFamilies();
uno::Reference<container::XNameContainer> xStyles;