This commit is contained in:
Marco van Dijk 2021-07-09 23:46:59 +02:00
parent 50e1fe05c0
commit f7ec726eae
2 changed files with 4 additions and 4 deletions

View File

@ -51,9 +51,9 @@ def initConfig():
'rightMargin': 50, 'rightMargin': 50,
'tryToShrinkRatio' : 0.25, 'tryToShrinkRatio' : 0.25,
'lowestwhitespaceonwidthratioallowed': 0.90, 'lowestwhitespaceonwidthratioallowed': 0.90,
'hightestwhitespaceonwidthratioallowed': 0.40, 'highestwhitespaceonwidthratioallowed': 0.40,
'keepEmptyLines': 1, 'keepEmptyLines': 1,
'writeMetaData': 0 'writeheaderfile': 0
} }
# (if CMD arguments: load CMD arguments to override specific settings) # (if CMD arguments: load CMD arguments to override specific settings)
with open('config.ini', 'w') as configfile: with open('config.ini', 'w') as configfile:

View File

@ -232,11 +232,11 @@ class Song:
self.lowestWhitespaceOnWidthRatioAllowed = float(configObj['lowestWhitespaceOnWidthRatioAllowed']) self.lowestWhitespaceOnWidthRatioAllowed = float(configObj['lowestWhitespaceOnWidthRatioAllowed'])
# Some sections are very small, so the highest whitespace can be very large. # Some sections are very small, so the highest whitespace can be very large.
# It is advised to keep this value relatively small # It is advised to keep this value relatively small
self.hightestWhitespaceOnWidthRatioAllowed = float(configObj['hightestWhitespaceOnWidthRatioAllowed']) self.hightestWhitespaceOnWidthRatioAllowed = float(configObj['highestwhitespaceonwidthratioallowed'])
# Strip empty lines from input or keep em # Strip empty lines from input or keep em
self.keepEmptyLines = configObj['keepEmptyLines'] == '1' self.keepEmptyLines = configObj['keepEmptyLines'] == '1'
# Strip empty lines from input or keep em # Strip empty lines from input or keep em
self.writeMetadata = configObj['writemetadata'] == '1' self.writeMetadata = configObj['writeheaderfile'] == '1'
"""!@brief Calculates dimensions of metadata """!@brief Calculates dimensions of metadata