Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
deleted 2 characters in body; edited tags
Source Link
Drew
  • 79.1k
  • 10
  • 123
  • 257

How do you clean up an html file?

For example, this file has one too many empty line between the div tags. I would like cleanup to leave only one blank line there.

<html>
  <body>
    <div>
      foo
    </div>


    <div>
      abc
    </div>
  </body>
</html>

What I tried in my emacs prelude

M-x help
d PATTERN   Show a list of functions, variables, and other items whose
              documentation matches the PATTERN (a list of words or a regexp).
entered 'clean html'

Nothing found

How do you clean up an html file?

For example, this file has one too many empty line between the div tags. I would like cleanup to leave only one blank line there.

<html>
  <body>
    <div>
      foo
    </div>


    <div>
      abc
    </div>
  </body>
</html>

What I tried in my emacs prelude

M-x help
d PATTERN   Show a list of functions, variables, and other items whose
              documentation matches the PATTERN (a list of words or a regexp).
entered 'clean html'

Nothing found

How do you clean up an html file?

For example, this file has one too many empty line between the div tags. I would like cleanup to leave only one blank line there.

<html>
  <body>
    <div>
      foo
    </div>


    <div>
      abc
    </div>
  </body>
</html>

What I tried in my emacs prelude

M-x help
d PATTERN   Show a list of functions, variables, and other items whose
              documentation matches the PATTERN (a list of words or a regexp).
entered 'clean html'

Nothing found

Source Link

can I quickly clean up html files with emacs (prelude)

How do you clean up an html file?

For example, this file has one too many empty line between the div tags. I would like cleanup to leave only one blank line there.

<html>
  <body>
    <div>
      foo
    </div>


    <div>
      abc
    </div>
  </body>
</html>

What I tried in my emacs prelude

M-x help
d PATTERN   Show a list of functions, variables, and other items whose
              documentation matches the PATTERN (a list of words or a regexp).
entered 'clean html'

Nothing found