|
|
|
@ -22,12 +22,11 @@
|
|
|
|
|
(setq newname (concat (file-name-base) ".html"))
|
|
|
|
|
(find-file-noselect newname)
|
|
|
|
|
(with-current-buffer newname
|
|
|
|
|
(goto-line 1)
|
|
|
|
|
(delete-region (line-beginning-position) (line-end-position))
|
|
|
|
|
(goto-line 2)
|
|
|
|
|
(delete-region (line-beginning-position) (line-end-position))
|
|
|
|
|
(goto-line 3)
|
|
|
|
|
(delete-region (line-beginning-position) (line-end-position))
|
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(setq delpoint (search-forward "</head>\n"))
|
|
|
|
|
(delete-region (point-min) delpoint)
|
|
|
|
|
(while (re-search-forward "<\\/html>" nil t)
|
|
|
|
|
(replace-match ""))
|
|
|
|
|
(write-file newname)))
|
|
|
|
|
|
|
|
|
|
(defun dwdraft ()
|
|
|
|
|