Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added script-no-first-blank-line option #1131

Open
wants to merge 1 commit into
base: next
Choose a base branch
from

Conversation

azimonti
Copy link

Added a new option that is leaving unchanged the first line after script so that

  <script>

  if ('serviceWorker' in navigator) {
    navigator.serviceWorker.register('/service-worker.min.js', { scope: '/' })
        .catch(error => console.error('Service Worker registration failed:', error));
  }
  </script>

is not becoming (if tidy is called in-place 3 times)

  <script>




  if ('serviceWorker' in navigator) {
    navigator.serviceWorker.register('/service-worker.min.js', { scope: '/' })
        .catch(error => console.error('Service Worker registration failed:', error));
  }
  </script>

--script-no-first-blank-line is set to no by default (i.e. not changing the current behavior).

If I need to add test or any translation / file, please let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant