Skip to content

Commit

Permalink
rst-1231 another tweak, for spec. LF-combos
Browse files Browse the repository at this point in the history
  • Loading branch information
mattretzer committed Jan 29, 2024
1 parent ad49f17 commit 07e6e25
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 1 deletion.
Binary file modified RSuite_Word-template.dotm
Binary file not shown.
10 changes: 10 additions & 0 deletions src/RSuite_Word-template/Clean.bas
Original file line number Diff line number Diff line change
Expand Up @@ -995,6 +995,16 @@ Sub LocalFormatting(MyStoryNo)
'underline
Call ConvertLocalFormatting(MyStoryNo, UnderlineTF:=True, NewStyle:="underline (u)")

'as per RST-1231, we take some LF-combos with no RS equiv. and revert them to ones that do:
'bold + strikethrough = strikethrough
Call ConvertLocalFormatting(MyStoryNo, BoldTF:=True, StrikeTF:=True, NewStyle:="strike (str)")
'ital + strikethrough = strikethrough
Call ConvertLocalFormatting(MyStoryNo, ItalTF:=True, StrikeTF:=True, NewStyle:="strike (str)")
'bold + underline = underline
Call ConvertLocalFormatting(MyStoryNo, BoldTF:=True, UnderlineTF:=True, NewStyle:="underline (u)")
'ital + underline = underline
Call ConvertLocalFormatting(MyStoryNo, ItalTF:=True, UnderlineTF:=True, NewStyle:="underline (u)")

completeStatus = completeStatus + vbNewLine + thisstatus + "100%"
If Not pBar Is Nothing Then Clean_helpers.updateStatus ("")

Expand Down
Binary file modified test_files/testfile_charstyle_results.dotx
Binary file not shown.
Binary file modified test_files/testfile_charstyles.dotx
Binary file not shown.
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.5.3
6.5.4

0 comments on commit 07e6e25

Please sign in to comment.