Skip to content

Commit

Permalink
Merge pull request #38 from macmillanpublishers/wdv-389-newstyles-0621b
Browse files Browse the repository at this point in the history
Wdv 389 newstyles 0621b
  • Loading branch information
mattretzer authored Jun 8, 2021
2 parents 4d9687e + bc2e378 commit 1b9cfe7
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 10 deletions.
Binary file modified RSuite_Word-template.dotm
Binary file not shown.
Binary file modified StyleTemplate_auto-generate/RSuite.dotx
Binary file not shown.
Binary file modified StyleTemplate_auto-generate/RSuite_NoColor.dotx
Binary file not shown.
2 changes: 1 addition & 1 deletion src/RSuite_Word-template/CIPmacro.bas
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Sub Main()
tagRequiredArray = Array(tpRequired, cpRequired, spRequired, tocRequired)

' chapter tagging handled separately
chNamesArray = Array("Chapter", "Chapter 2")
chNamesArray = Array("Chapter", "Alt Chapter")
chTag = "ch"
' these backmatter strings match names in "sectionFile".
bmSectionArray = Array("About the Author", _
Expand Down
18 changes: 10 additions & 8 deletions src/RSuite_Word-template/TestModule4_CIP.bas
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Private Function SetVariables()
tagDisplayNameArray = Array(tpDisplayName, cpDisplayName, spDisplayName, tocDisplayName)
tagRequiredArray = Array(tpRequired, cpRequired, spRequired, tocRequired)

chNamesArray = Array("Chapter", "Chapter 2")
chNamesArray = Array("Chapter", "Alt Chapter")
chTag = "ch"
' these backmatter strings match names in "sectionFile".
bmSectionArray = Array("About the Author", _
Expand All @@ -58,7 +58,9 @@ Private Function SetVariables()
"Bibliography", _
"Conclusion", _
"Excerpt Chapter", _
"Excerpt Opener")
"Excerpt Opener", _
"Illustration Credits", _
"Permissions")
End Function

Private Function DestroyResultStrings()
Expand Down Expand Up @@ -385,7 +387,7 @@ End Sub

'@TestMethod("CIPtests")
Private Sub TestRmParas() 'TODO Rename test
Dim tstStyleName As String, resultStr
Dim tstStyleName As String, resultstr
Dim expectedRange As Range, testRange As Range
Dim beforeDotxPath As String, afterDotxPath As String
Dim beforeDoc As Document, afterDoc As Document
Expand All @@ -404,10 +406,10 @@ Private Sub TestRmParas() 'TODO Rename test
' for debug:
'Set afterDoc = Application.Documents.Add(Template:=afterDotxPath)
Set expectedRange = afterDoc.Range
resultStr = TestHelpers.compareRanges(testRange, expectedRange)
resultstr = TestHelpers.compareRanges(testRange, expectedRange)
'Assert:
Assert.Succeed
Assert.areequal "Same", resultStr
Assert.areequal "Same", resultstr
'Cleanup:
beforeDoc.Close savechanges:=wdDoNotSaveChanges
afterDoc.Close savechanges:=wdDoNotSaveChanges
Expand All @@ -419,7 +421,7 @@ End Sub

'@TestMethod("CIPtests")
Private Sub TestChangeBreaks() 'TODO Rename test
Dim tstStyleName As String, resultStr
Dim tstStyleName As String, resultstr
Dim expectedRange As Range, testRange As Range
Dim beforeDotxPath As String, afterDotxPath As String
Dim beforeDoc As Document, afterDoc As Document
Expand All @@ -437,10 +439,10 @@ Private Sub TestChangeBreaks() 'TODO Rename test
' for debug:
'Set afterDoc = Application.Documents.Add(Template:=afterDotxPath)
Set expectedRange = afterDoc.Range
resultStr = TestHelpers.compareRanges(testRange, expectedRange)
resultstr = TestHelpers.compareRanges(testRange, expectedRange)
'Assert:
Assert.Succeed
Assert.areequal "Same", resultStr
Assert.areequal "Same", resultstr
'Cleanup:
beforeDoc.Close savechanges:=wdDoNotSaveChanges
afterDoc.Close savechanges:=wdDoNotSaveChanges
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.4
6.4.1

0 comments on commit 1b9cfe7

Please sign in to comment.