Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8134984

Text files should end in exactly one newline

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: other-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b81
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        Tidy your text files thus:

        find -name .hg -prune -o -type f | LC_ALL=C xargs perl -0777 -ne 'print "$ARGV\n" if m~\A[\x00-\x7e]*\Z~ && ! m~[^\n]\n\Z~' | grep -Ev '\.(out|in|data|obj|sde|template)$' | grep -Ev '/(inputData|data|sde)/' | xargs perl -0777 -pi -e 's~\n*\Z~\n~'

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                martin Martin Buchholz
                Reporter:
                martin Martin Buchholz
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: