dd description for (my/html-paragraphify-buffer).

This commit is contained in:
tastytea 2021-03-15 04:15:21 +01:00
parent 6a5981d19a
commit 230aef77c2
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 2 additions and 1 deletions

View File

@ -28,9 +28,10 @@
(message "No active region")))
(defun my/html-paragraphify-buffer ()
"Wrap every line not beginning with < or a newline in <p> tags."
(interactive)
(goto-char (point-min))
(while (re-search-forward "^\\([^<$
(while (re-search-forward "^\\([^<
].+\\)$" nil t)
(replace-match "<p>\\1</p>"))))
:mode (("\\.[ps]?html?$" . web-mode)