sidenotes package: horizontal spacing after the sidenote mark

If I use the package sidenotes and try the following:

Test\sidenote{Side note.}, continue.


there is a big space before the comma.

Is it possible to avoid this?

Thanks to cgnieder for picking up on some missing % signs. But even with that fixed, it still added too much space for my taste. So I removed a few spaces. I checked, and it does NOT seem to misspace things when getting into double digits, so you might be good to go.

\documentclass{article}
\usepackage{sidenotes}
\makeatletter
\renewcommandtwoopt{\sidenote}[3][][]{%
\sidenotemark[#1]%
\sidenotetext[#1][#2]{#3}%
\@ifnextchar\sidenote{\kern-0.07em\textsuperscript{,}}%
{\@ifnextchar\sidecite{\kern-0.07em\textsuperscript{,}}{}}% <<SPACE REMOVED
}
\renewcommandtwoopt{\sidenotetext}[3][][]{%
\ifthenelse{\isempty{#1}}{% sitenotemark given?
\ifthenelse{\isempty{#2}}% offset given?
{\marginpar{\textsuperscript{\thesidenote}{}#3}}% <<<SPACE REMOVED
{\marginnote{\textsuperscript{\thesidenote}{}#3}[#2]}% <<<SPACE REMOVED

• There's a spurious space at the end of the redefinition of \sidenotetext – cgnieder Jul 23 '13 at 11:24