Bug in Copy as HTML

It worked in IDE 1.0.6 but using 1.6.5 single line comments are exported properly but multi line comments (starting with /* and ending with */) are not separated by a CR/LF, and as they are

-formatted multi-line comments appear in one single line in your browser.
So you have to use your editor to manually insert the CR/LF between the lines.

I submitted this to the issue tracker in the Arduino IDE GitHub repository: Copy as HTML removes line breaks from multi-line comments · Issue #3970 · arduino/Arduino · GitHub

The bug has now been fixed. It will be available when Arduino IDE 1.6.6 is released or in the hourly build. Thanks for reporting it Klausj!