coldnew / pangu-spacing

emacs minor-mode to add space between Chinese/Japanese/Korean and English characters.
144 stars 16 forks source link

Ignore constant strings when processing #20

Open jingqi opened 8 years ago

jingqi commented 8 years ago

I am using `pangu-spacing-real-insert-separtor' in my programming. It's good, but there is a little problem: it tries to insert space in my constant strings. Like this:

msg = "您收到了%s的邀请" % name
Dialog.show(msg)

I don't want a space inserted between "%s" and "的邀请", or any constant strings in my source files. What I want is spaces inserted in my commentary, or document strings. Can this be possible?