pandoc.exe follows the Windows CRLF format of newlines, whereas we only ever 
have LF in our documentation files. As a result whenever we generate html the 
resulting html files will all be mangled, even if there was no change to the 
corresponding markdown file. This passes --eol=lf to pandoc so that it always 
uses LF no matter the platform, since we never ever seem to use (or even want 
to use) CRLF at all, so that pandoc will exhibit consistent behaviour on all 
platforms

pandoc by default uses the --eol=native option, which is LF on macOS, Linux and 
UNIX, so this change will not affect their html generation whatsoever, but will 
make the lives of Windows JDK developers and _especially_ JDK developers 
working with MSYS2 a hell of a lot easier (*cries internally)

-------------

Commit messages:
 - ProcessMarkdown.gmk

Changes: https://git.openjdk.org/jdk/pull/12733/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=12733&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8303131
  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/12733.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/12733/head:pull/12733

PR: https://git.openjdk.org/jdk/pull/12733

Reply via email to