Status: Resolved
 Comment by Perryn Fowler [ 03/Jun/14 ] For clarity: The issue is not that gradle strips 'newlines'(\n) but that it escapes backslashes () that are used as 'line continuations' in javadoc argfiles. Gradle should probably actually insert backslashes when it finds newlines. Comment by Szczepan Faber [ 29/Jul/14 ] I'm working on it but it won't work reliably on windows. I've tried plain javadoc command with options file that contains this: -header 'this is\ a test which should fail'  It fails on windows. I've tried bunch of different combinations slashes, linebreaks, etc (and different windows+java combo) with no luck. I'll go ahead and fix it. It will work for linux and mac neatly. For windows, it will work no worse than it used to. Comment by Szczepan Faber [ 04/Aug/14 ] This is fixed on non-windows environments. See the detailed description above. If there is a need for this feature on windows, please file a separate ticket.