francodacosta / atom-php-getters-setters

automatically generate _Getters_ and _Setters_ for your php classes in the atom.io editor
MIT License
17 stars 10 forks source link

Template editor add black slash after save #23

Open Trudko opened 9 years ago

Trudko commented 9 years ago

Hi, i love the editor idea! :). Problem is I've saved this as getter template

%scope% function %methodName%() {
    return $this->%variable%;
}

but it turned into this:

%scope%\ function\ %methodName%()\ {
\ \ \ \ return\ $this->%variable%;
}
francodacosta commented 9 years ago

Yes, something changed on the latest versions of atom, i will try to fix it asap

On 04/08/2015 14:10, Trudko wrote:

Hi, i love the editor idea! :). Problem is I've saved this as getter template

|%scope% function %methodName%() { return $this->%variable%; } |

but it turned into this:

|%scope%\ function\ %methodName%()\ { \ \ \ \ return\ $this->%variable%; } |

— Reply to this email directly or view it on GitHub https://github.com/francodacosta/atom-php-getters-setters/issues/23.


This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus

umpirsky commented 8 years ago

Any update on this?

ValentinMerlet commented 8 years ago

+1, got backslashes instead of nbsp

tapiwan commented 8 years ago

+1, happened to me too :)

umpirsky commented 8 years ago

Ping @francodacosta.

bbailleux commented 8 years ago

Got the problem, too. Is there any workaround until the bug is fixed?

umpirsky commented 8 years ago

No afaik.

bbailleux commented 8 years ago

Hello @umpirsky, @Trudko, all

While trying again to get rid of those annoying back-slashes, I just discovered that I can simply remove them (actually: keep only one before every <space>) by editing (with caution) the ~/.atom/config.cson file.

So I can wait for a fix without being stuck by this bug.

mcanvar commented 8 years ago

:+1: same here

RenanLazarotto commented 8 years ago

I can confirm this too.

ldaguise commented 7 years ago

+1 (and there is not $ before the variable name in the setter's description)

jhernandes commented 7 years ago

+1