mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-05-21 13:22:29 +12:00
One more bug corrected
This commit is contained in:
parent
e35369dc58
commit
e02c5fe6fe
|
@ -49,7 +49,7 @@ characterMap = OrderedDict([
|
||||||
])
|
])
|
||||||
|
|
||||||
# If true, logs infos while saving and loading.
|
# If true, logs infos while saving and loading.
|
||||||
LOG = True
|
LOG = False
|
||||||
|
|
||||||
def formatMetaData(name, value, tabLength=10):
|
def formatMetaData(name, value, tabLength=10):
|
||||||
|
|
||||||
|
|
|
@ -231,10 +231,13 @@ def load(string, fromString=False, protocol=None):
|
||||||
for i in revisions["rules"]:
|
for i in revisions["rules"]:
|
||||||
if i == "null":
|
if i == "null":
|
||||||
r[None] = revisions["rules"]["null"]
|
r[None] = revisions["rules"]["null"]
|
||||||
continue
|
|
||||||
elif i == None:
|
elif i == None:
|
||||||
continue
|
r[None] = revisions["rules"][None]
|
||||||
r[int(i)] = revisions["rules"][i]
|
|
||||||
|
else:
|
||||||
|
r[int(i)] = revisions["rules"][i]
|
||||||
|
|
||||||
revisions["rules"] = r
|
revisions["rules"] = r
|
||||||
|
|
||||||
if "frequencyAnalyzer" in allSettings:
|
if "frequencyAnalyzer" in allSettings:
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
"corkSizeFactor": 84,
|
"corkSizeFactor": 84,
|
||||||
"defaultTextType": "txt",
|
"defaultTextType": "txt",
|
||||||
"dict": "en_US",
|
"dict": "en_US",
|
||||||
"folderView": "text",
|
"folderView": "cork",
|
||||||
"frequencyAnalyzer": {
|
"frequencyAnalyzer": {
|
||||||
"phraseMax": 5,
|
"phraseMax": 5,
|
||||||
"phraseMin": 2,
|
"phraseMin": 2,
|
||||||
|
@ -18,7 +18,7 @@
|
||||||
"wordMin": 1
|
"wordMin": 1
|
||||||
},
|
},
|
||||||
"fullScreenTheme": "gentleblues",
|
"fullScreenTheme": "gentleblues",
|
||||||
"lastTab": 4,
|
"lastTab": 6,
|
||||||
"openIndexes": [
|
"openIndexes": [
|
||||||
null
|
null
|
||||||
],
|
],
|
||||||
|
@ -38,7 +38,8 @@
|
||||||
"2592000": 86400,
|
"2592000": 86400,
|
||||||
"3600": 600,
|
"3600": 600,
|
||||||
"600": 60,
|
"600": 60,
|
||||||
"86400": 3600
|
"86400": 3600,
|
||||||
|
"null": 604800
|
||||||
},
|
},
|
||||||
"smartremove": true
|
"smartremove": true
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue