Remove spaces from the expression

Issue #356 wontfix
Former user created an issue

Originally reported on Google Code with ID 356

How about removing spaces from the user input?
Now, I cannot enter "1 450 + 5 400", because it's an invalid expression.

A small change does the trick:

src/gui/editor.cpp:

 QString Editor::text() const
 {
-    return toPlainText();
+    return toPlainText().remove(' ');
 }


What do you say?

Reported by wesand on 2010-09-17 06:46:52

Comments (4)

  1. Former user Account Deleted

    ``` bump :) Are there any contraindications to apply this change?

    ```

    Reported by `wesand` on 2011-07-21 09:20:54

  2. Former user Account Deleted

    ``` Sorry, completely forgot to reply to you since September... This is not so linear as your proposed change describes it, because of e.g. issue 58. ```

    Reported by `helder.pereira.correia` on 2011-08-01 03:06:06

  3. Former user Account Deleted

    Reported by helder.pereira.correia on 2013-03-24 06:41:33 - Status changed: Rejected

  4. Log in to comment