I would like to put a newline after every tag in an HTML file in Emacs.
Now I have got
M-x query-replace-regexp \(<[^>]*>\) --> \1\n
This returns
invalid use of "\"
I’ve already tried C-x C-j, but that returns <html>C-x C-j<head>C-x C-j etc...
If anybody knows the solution, that would be helpful 🙂
instead of \n, use C-q C-j
http://jeremy.zawodny.com/blog/archives/008872.html