diff --git a/lib/config.py b/lib/config.py index b9e9823..3e99154 100644 --- a/lib/config.py +++ b/lib/config.py @@ -51,9 +51,9 @@ def initConfig(): 'rightMargin': 50, 'tryToShrinkRatio' : 0.25, 'lowestwhitespaceonwidthratioallowed': 0.90, - 'hightestwhitespaceonwidthratioallowed': 0.40, + 'highestwhitespaceonwidthratioallowed': 0.40, 'keepEmptyLines': 1, - 'writeMetaData': 0 + 'writeheaderfile': 0 } # (if CMD arguments: load CMD arguments to override specific settings) with open('config.ini', 'w') as configfile: diff --git a/lib/dataStructures.py b/lib/dataStructures.py index a107642..93a53bf 100644 --- a/lib/dataStructures.py +++ b/lib/dataStructures.py @@ -232,11 +232,11 @@ class Song: self.lowestWhitespaceOnWidthRatioAllowed = float(configObj['lowestWhitespaceOnWidthRatioAllowed']) # Some sections are very small, so the highest whitespace can be very large. # 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 self.keepEmptyLines = configObj['keepEmptyLines'] == '1' # Strip empty lines from input or keep em - self.writeMetadata = configObj['writemetadata'] == '1' + self.writeMetadata = configObj['writeheaderfile'] == '1' """!@brief Calculates dimensions of metadata