From 072b46aacc9b1ff44a7f2ec7fb9bd1de370397a6 Mon Sep 17 00:00:00 2001 From: Georgy Litvinov Date: Fri, 13 Mar 2020 09:12:47 +0100 Subject: [PATCH] Separated footnotes style cleaning from format cleaning --- Redaction/Clean.xba | 10 ++++++++-- description.xml | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Redaction/Clean.xba b/Redaction/Clean.xba index 47491cd..01a1f10 100644 --- a/Redaction/Clean.xba +++ b/Redaction/Clean.xba @@ -1,6 +1,6 @@ -Sub mark30 +Sub mark31 End Sub @@ -47,6 +47,11 @@ Private Sub cleanAccordingTo(dialog) statusIndicator.Start("Чистим ручное форматирование",100) cleanFormatting EndIf + If dialog.getControl("resetFootnotesStyle").state = 1 Then + statusIndicator.Start("Очищаем стили сносок",100) + resetFootnotesStyle + EndIf + If dialog.getControl("removeUnusedStyles").state = 1 Then removeUnusedStyles EndIf @@ -109,6 +114,7 @@ Private Sub quietCleaning unicodeSymbolsConversion statusIndicator.Start("Чистим ручное форматирование",100) cleanFormatting + resetFootnotesStyle removeUnusedStyles statusIndicator.Start("Удаляем гиперссылки",100) removeHyperlinks @@ -617,7 +623,7 @@ Private Sub cleanFormatting convertFormattingFromText - resetFootnotesStyle + diff --git a/description.xml b/description.xml index 0dc52f9..fd6a463 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"> - + Cleaning and validation documents for publishing in html and epub with pagination