Source Code Formatter deletes strings. #1365

Closed
yogiman3 opened this Issue Aug 9, 2016 · 2 comments

Projects

None yet

2 participants

@yogiman3
yogiman3 commented Aug 9, 2016 edited

Hello, i had tried to format my old php code using builtin code formater.
The result is nice, but every string that contains unicode character is missing after formatting.

eg.:

      public function actionLogout(){
                $this->getUser()->logout();
                $this->flashMessage('Odhlásenie prebehlo úspešne!');
                $this->redirect("Login:");
        }

is formatted to:

    public function actionLogout() {
        $this->getUser()->logout();
        $this->flashMessage();
        $this->redirect("Login:");
    }

Codelite 9.2.0
Source Code Formatter plugin with default settings.

Can you reproduce this behaviour?
Thanks.

@eranif
Owner
eranif commented Aug 10, 2016

Thanks for reporting this, will look into it

@yogiman3

On Windows 7 with Codelite 9.2.1 is formatting result:

    public function actionLogout() {
        $this->getUser()->logout();
        $this->flashMessage('Odhlásenie prebehlo úspešne!');
        $this->redirect("Login:");
    }

It looks like change of cahracters encoding or something like that.

@eranif eranif added a commit that closed this issue Sep 9, 2016
@eranif Fixed: #1365
Fixed: #1403
e5fd435
@eranif eranif closed this in e5fd435 Sep 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment