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

Text files should end in exactly one newline

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • None
    • other-libs
    • b81
    • generic
    • generic

        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~'

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

                Created:
                Updated:
                Resolved: