scala-js-website icon indicating copy to clipboard operation
scala-js-website copied to clipboard

Multi-line clipboard copy does not preserve newlines

Open williamho opened this issue 8 years ago • 0 comments

On the libraries page, the enableIf library at the bottom has a multi-line dep:

addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full)
libraryDependencies += "com.thoughtworks.enableIf" %% "enableif" % "latest.release"

however, clicking the clipboard button copies the string as one line (on OSX Chrome, anyway), with no separator:

addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full)libraryDependencies += "com.thoughtworks.enableIf" %% "enableif" % "latest.release"

Though I'm not sure if this is an issue with the clipboard library or if it's related to this site specifically.

williamho avatar Jun 10 '16 21:06 williamho