Remove escapes from "'" from Python docs output.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sun, 14 Feb 2016 21:06:19 +0200
changeset 1341 227f15d381aa
parent 1340 daa03efc12b9
child 1342 ca70c69cabe5
Remove escapes from "'" from Python docs output.
.emacs-my
--- a/.emacs-my	Sun Feb 14 20:04:20 2016 +0200
+++ b/.emacs-my	Sun Feb 14 21:06:19 2016 +0200
@@ -2804,6 +2804,9 @@
         (replace-match ""))
       (while (re-search-forward "\\\\n" nil t)
         (replace-match "\n"))
+      (goto-char (point-min))
+      (while (re-search-forward "\\\\'" nil t)
+        (replace-match "'"))
       (goto-char (point-max))
       (when (eq ?' (char-before))
         (delete-char -1))