and the body tags, tbf …
This commit is contained in:
parent
499d4a4dff
commit
478a1e8cb0
1 changed files with 5 additions and 4 deletions
|
@ -23,10 +23,11 @@
|
|||
(find-file-noselect newname)
|
||||
(with-current-buffer newname
|
||||
(goto-char (point-min))
|
||||
(setq delpoint (search-forward "</head>\n"))
|
||||
(delete-region (point-min) delpoint)
|
||||
(while (re-search-forward "<\\/html>" nil t)
|
||||
(replace-match ""))
|
||||
(setq delpoint-one (search-forward "<body>\n"))
|
||||
(delete-region (point-min) delpoint-one)
|
||||
(goto-char (point-max))
|
||||
(setq delpoint-two (search-backward "</body>"))
|
||||
(delete-region delpoint-two (point-max))
|
||||
(write-file newname)))
|
||||
|
||||
(defun dwdraft ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue