[Libreoffice-commits] core.git: Branch 'libreoffice-5-3' - sw/source

Jan Holesovsky kendy at collabora.com
Fri Jan 20 11:19:21 UTC 2017


 sw/source/uibase/uno/unotxdoc.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 5bfa9f02f41c9beb755e3b2f69ba5bdf05b1613f
Author: Jan Holesovsky <kendy at collabora.com>
Date:   Thu Jan 19 19:40:58 2017 +0100

    Preserve whitespace with tiled rendering.
    
    Online is often used for taking minutes, and during that, people don't have
    time to play with the formatting - so it is annoying when autocorrect goes in
    the way.
    
    Change-Id: Ia1794c46d3003198764f666951821f693d710653
    Reviewed-on: https://gerrit.libreoffice.org/33326
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Michael Meeks <michael.meeks at collabora.com>

diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx
index e649784..a65616a 100644
--- a/sw/source/uibase/uno/unotxdoc.cxx
+++ b/sw/source/uibase/uno/unotxdoc.cxx
@@ -3308,6 +3308,10 @@ void SwXTextDocument::initializeForTiledRendering(const css::uno::Sequence<css::
     // disable word auto-completion suggestions, the tooltips are not visible,
     // and the editeng-like auto-completion is annoying
     SvxAutoCorrCfg::Get().GetAutoCorrect()->GetSwFlags().bAutoCompleteWords = false;
+
+    // don't change the whitespace at the beginning of paragraphs, this is
+    // annoying when taking minutes without further formatting
+    SwEditShell::GetAutoFormatFlags()->bAFormatByInpDelSpacesAtSttEnd = false;
 }
 
 void SwXTextDocument::postKeyEvent(int nType, int nCharCode, int nKeyCode)


More information about the Libreoffice-commits mailing list