Commits

Ivan Andrus committed e425629

Fixed duplication
Added require for whizzytex

  • Participants
  • Parent commits 13ba059

Comments (0)

Files changed (1)

File whizzy-tikz.el

+
+(require 'whizzytex)
 
 ;; Overwrite -- this should be an advice, but I want it here for
 ;; reference.  At least for now
                           ;;    (and (string= (match-string-no-properties 1) dx)
                           ;;         (string= (match-string-no-properties 2) dy))))
                           t)
-                         (saved-line (and (string= "duplicate" (nth 3 style-pieces))
+                         (saved-line (and (string= "yes" (nth 3 style-pieces))
                                           (buffer-substring-no-properties
                                            (line-beginning-position)
                                            (line-end-position)))))
                      ;; "Duplicate" it -- putting the new copy _after_ the old
                      (when saved-line
                        (beginning-of-line)
-                       (insert saved-line))
+                       (insert saved-line)
+                       (insert "\n"))
                      ;; rewhizzify
                      (unless (not edited)
                        (if (or modified