The relevant section in my .emacs file looks as follows:
(require 'smartparens)
(smartparens-global-mode t)
(require 'smartparens-config)
;; for erb
(sp-pair "%" "%" :wrap "C-%")
I am often getting extra sets of quotes when typing the final quote in a pair rather than the final quote being overwritten, as expected and am trying to figure out what the cases this happens in are, and if there is a resolution. I a big part of the problem is that the closing pair member is the same as the opening pair member.
Example:
Type "<any single character><backspace>"
Typing the first quote generates the second, but when typing the above sequence, I would expect for the final quote to be overwritten, as it does when you omit the <backspace>
keystroke.
Another example:
Type ""
Outputs: """"
I'm not really sure if there is a good, general solution to this, as there may be cases in which this behaviour is desired. Feel free to edit this question with more examples.