Fixed #734 issue with filename encoding.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@14556 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
parent
ebe87cf0d7
commit
8b7c0241e1
|
@ -7,7 +7,7 @@
|
||||||
package scala.tools.nsc.doc
|
package scala.tools.nsc.doc
|
||||||
|
|
||||||
import java.io.{File, FileWriter}
|
import java.io.{File, FileWriter}
|
||||||
|
import util.NameTransformer
|
||||||
import scala.collection.jcl
|
import scala.collection.jcl
|
||||||
import scala.compat.Platform.{EOL => LINE_SEPARATOR}
|
import scala.compat.Platform.{EOL => LINE_SEPARATOR}
|
||||||
import scala.xml.{NodeSeq, Text, Unparsed, Utility}
|
import scala.xml.{NodeSeq, Text, Unparsed, Utility}
|
||||||
|
@ -155,7 +155,7 @@ trait ModelFrames extends ModelExtractor {
|
||||||
def urlFor0(sym: Symbol, orig: Symbol): String =
|
def urlFor0(sym: Symbol, orig: Symbol): String =
|
||||||
(if (sym == NoSymbol) "XXX"
|
(if (sym == NoSymbol) "XXX"
|
||||||
else if (sym.owner.isPackageClass) rootFor(sym) + pkgPath(sym)
|
else if (sym.owner.isPackageClass) rootFor(sym) + pkgPath(sym)
|
||||||
else urlFor0(decode(sym.owner), orig) + "." + Utility.escape(sym.nameString)
|
else urlFor0(decode(sym.owner), orig) + "." + NameTransformer.encode(Utility.escape(sym.nameString))
|
||||||
) +
|
) +
|
||||||
(sym match {
|
(sym match {
|
||||||
case msym: ModuleSymbol =>
|
case msym: ModuleSymbol =>
|
||||||
|
|
Loading…
Reference in New Issue