From 383c0c832de1f9107059ed8d15c3e7d95da557fd Mon Sep 17 00:00:00 2001 From: Georgy Litvinov Date: Wed, 16 Jun 2021 15:55:06 +0200 Subject: [PATCH] Copy space if endnote is empty --- description.xml | 2 +- ePublishing/Endnotes.xba | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/description.xml b/description.xml index 2abb5d7..22a286a 100644 --- a/description.xml +++ b/description.xml @@ -3,7 +3,7 @@ xmlns:dep="http://openoffice.org/extensions/description/2006" xmlns:xlink="http://www.w3.org/1999/xlink"> - + Инструменты для создания электронных изданий diff --git a/ePublishing/Endnotes.xba b/ePublishing/Endnotes.xba index a85fbee..ced8221 100644 --- a/ePublishing/Endnotes.xba +++ b/ePublishing/Endnotes.xba @@ -291,6 +291,9 @@ Sub convertNativeEndnoteToCustom(sign As String, nativeEndNoteTextRange As Objec oViewCursor = ThisComponent.CurrentController.getViewCursor() oViewCursor.goToRange(nativeEndNoteTextRange.Footnote.Text.Start,false) oViewCursor.goToRange(nativeEndNoteTextRange.Footnote.Text.End,true) + If oViewCursor.String = "" Then + oViewCursor.String = " " + EndIf unoCut() oViewCursor.goToRange(outputPosition,false) getEndnotePara()