diff options
author | Gilles Dubochet <gilles.dubochet@epfl.ch> | 2010-02-05 13:12:34 +0000 |
---|---|---|
committer | Gilles Dubochet <gilles.dubochet@epfl.ch> | 2010-02-05 13:12:34 +0000 |
commit | 96dc0e44e8f1610463e38c05f647987c336b5093 (patch) | |
tree | c537d41bedd1fdfed155f8709cdf0fe1d342cea9 | |
parent | 28837470cb6225437eb915c983da4dc8f8420e4c (diff) | |
download | scala-96dc0e44e8f1610463e38c05f647987c336b5093.tar.gz scala-96dc0e44e8f1610463e38c05f647987c336b5093.tar.bz2 scala-96dc0e44e8f1610463e38c05f647987c336b5093.zip |
[scaladoc] Fixed issue with failing Windows build.
-rw-r--r-- | src/compiler/scala/tools/nsc/doc/model/ModelFactory.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/doc/model/ModelFactory.scala b/src/compiler/scala/tools/nsc/doc/model/ModelFactory.scala index bf18f28f75..5fdfe85c7e 100644 --- a/src/compiler/scala/tools/nsc/doc/model/ModelFactory.scala +++ b/src/compiler/scala/tools/nsc/doc/model/ModelFactory.scala @@ -156,7 +156,7 @@ class ModelFactory(val global: Global, val settings: doc.Settings) { extractor = override def toRoot: List[DocTemplateImpl] = this :: inTpl.toRoot def inSource = if (sym.sourceFile != null) Some(sym.sourceFile, sym.pos.line) else None def sourceUrl = { - def fixPath(s: String) = s.replaceAll(java.io.File.separator, "/") + def fixPath(s: String) = s.replaceAll("\\" + java.io.File.separator, "/") val assumedSourceRoot: String = { val fixed = fixPath(settings.sourcepath.value) if (fixed endsWith "/") fixed.dropRight(1) else fixed |