Skip to content

Commit 9ebb483

Browse files
committed
changed file encoding
The Table of Contents is now saved with UTF-8 encoding.
1 parent af323a3 commit 9ebb483

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

I/ToC.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ title: "Table of Contents"
44
---
55

66

7-
**[Proofs](/P/-temp-)** are printed in **bold***[Definitions](/D/-temp-)* are set in *italics* <br>
8-
**Proofs**: [by Number](/I/PbN), [by Topic](/I/PbT)*Definitions*: [by Number](/I/DbN), [by Topic](/I/DbT) <br>
7+
**[Proofs](/P/-temp-)** are printed in **bold***[Definitions](/D/-temp-)* are set in *italics* <br>
8+
**Proofs**: [by Number](/I/PbN), [by Topic](/I/PbT)*Definitions*: [by Number](/I/DbN), [by Topic](/I/DbT) <br>
99
<u>Specials:</u> [General Theorems](/S/ChI), [Probability Distributions](/S/ChII), [Statistical Models](/S/ChIII), [Model Selection Criteria](/S/ChIV) <br>
1010

1111

update.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
# List of Contents: read index file
145145
#-----------------------------------------------------------------------------#
146146
print('\n1a.List of Contents:')
147-
f1a = open('I/LoC.md', 'r')
147+
f1a = open('I/LoC.md', 'r', encoding='utf-8')
148148
LoCs = f1a.readlines()
149149
f1a.close()
150150

@@ -175,7 +175,7 @@
175175
#-----------------------------------------------------------------------------#
176176
print('\n1b.Table of Contents:')
177177
print(' - generating from list of contents ...')
178-
f1b = open('I/ToC.md', 'w')
178+
f1b = open('I/ToC.md', 'w', encoding='utf-8')
179179
f1b.write('---\nlayout: page\ntitle: "Table of Contents"\n---\n\n\n')
180180
f1b.write('**[Proofs](/P/-temp-)** are printed in **bold** – *[Definitions](/D/-temp-)* are set in *italics* <br>\n')
181181
f1b.write('**Proofs**: [by Number](/I/PbN), [by Topic](/I/PbT) – *Definitions*: [by Number](/I/DbN), [by Topic](/I/DbT) <br>\n')

0 commit comments

Comments
 (0)