mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Don't strip spaces when getting conversion option values in the GUI.
This commit is contained in:
parent
8718fd95f8
commit
c82eebd09e
@ -136,7 +136,7 @@ class Widget(QWidget):
|
||||
return g.value()
|
||||
elif isinstance(g, (QLineEdit, QTextEdit)):
|
||||
func = getattr(g, 'toPlainText', getattr(g, 'text', None))()
|
||||
ans = unicode(func).strip()
|
||||
ans = unicode(func)
|
||||
if not ans:
|
||||
ans = None
|
||||
return ans
|
||||
|
Loading…
x
Reference in New Issue
Block a user