atom-php-getters-setters icon indicating copy to clipboard operation
atom-php-getters-setters copied to clipboard

Template editor add black slash after save

Open Trudko opened this issue 9 years ago • 12 comments

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%;
}

Trudko avatar Aug 04 '15 13:08 Trudko

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

francodacosta avatar Aug 04 '15 13:08 francodacosta

Any update on this?

umpirsky avatar Dec 21 '15 13:12 umpirsky

+1, got backslashes instead of nbsp

ValentinMerlet avatar Jan 19 '16 20:01 ValentinMerlet

+1, happened to me too :)

tapiwan avatar Feb 12 '16 08:02 tapiwan

Ping @francodacosta.

umpirsky avatar Feb 12 '16 08:02 umpirsky

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

bbailleux avatar Mar 23 '16 15:03 bbailleux

No afaik.

umpirsky avatar Mar 24 '16 07:03 umpirsky

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.

bbailleux avatar Mar 24 '16 13:03 bbailleux

:+1: same here

mcanvar avatar Sep 01 '16 17:09 mcanvar

I can confirm this too.

RenanLazarotto avatar Sep 28 '16 20:09 RenanLazarotto

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

ldaguise avatar Nov 02 '16 08:11 ldaguise

+1

jhernandes avatar Nov 02 '16 16:11 jhernandes