aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--emms-info-libtag.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/emms-info-libtag.el b/emms-info-libtag.el
index 04cf3b3..b25de7a 100644
--- a/emms-info-libtag.el
+++ b/emms-info-libtag.el
@@ -59,6 +59,10 @@
nil t nil
(emms-track-name track))))
(goto-char (point-min))
+ ;; Crush the trailing whitespace
+ (while (re-search-forward "[[:space:]]+$" nil t)
+ (replace-match "" nil nil))
+ (goto-char (point-min))
(while (looking-at "^\\([^=\n]+\\)=\\(.*\\)$")
(let ((name (intern-soft (match-string 1)))
(value (match-string 2)))