fix mismerged indent

Change-Id: Ia1f2c822601ac41274b2b3d5a16778c7df472230
Reviewed-on: https://gerrit.libreoffice.org/12999
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
refactor into a local function

Change-Id: Id0ba44466216a5fababb7afe891c032aaafe9fee
Reviewed-on: https://gerrit.libreoffice.org/13000
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>