Fix bug #51617
Fix bug #51617

Fix the problem with calculating spacing before paragraph when table is placed before

ONLYOFFICE/sdkjs,ONLYOFFICE/sdkjs,ONLYOFFICE/sdkjs,ONLYOFFICE/sdkjs,ONLYOFFICE/sdkjs