diff options
author | NoDRM <[email protected]> | 2022-10-19 16:39:39 +0200 |
---|---|---|
committer | NoDRM <[email protected]> | 2022-10-19 16:39:39 +0200 |
commit | 06df18bea331b6e26dd416e8c58dec17d538a942 (patch) | |
tree | 049b0e78a012050a1740051d418fd76067fe3879 /DeDRM_plugin | |
parent | 06648eeb1c4e12de9be0f268f5c1eee8715de436 (diff) |
Strip whitespace from Kindle serials (#158)
Diffstat (limited to 'DeDRM_plugin')
-rwxr-xr-x | DeDRM_plugin/config.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/DeDRM_plugin/config.py b/DeDRM_plugin/config.py index 79129c3..82ee89f 100755 --- a/DeDRM_plugin/config.py +++ b/DeDRM_plugin/config.py @@ -1326,7 +1326,7 @@ class AddSerialDialog(QDialog): @property def key_value(self): - return str(self.key_ledit.text()).replace(' ', '') + return str(self.key_ledit.text()).replace(' ', '').replace('\r', '').replace('\n', '').replace('\t', '') def accept(self): if len(self.key_name) == 0 or self.key_name.isspace(): |