diff options
author | Vlad Ureche <vlad.ureche@gmail.com> | 2012-10-02 11:49:05 +0200 |
---|---|---|
committer | Vlad Ureche <vlad.ureche@gmail.com> | 2012-10-02 12:48:19 +0200 |
commit | ab7857b7b2c122012bedb6e173753d41c1063efa (patch) | |
tree | 060ec2199e5ed48e0632822173db1e0429171d38 /src/compiler | |
parent | 1088af1236b64b89118e566ce3856b8101b391a9 (diff) | |
download | scala-ab7857b7b2c122012bedb6e173753d41c1063efa.tar.gz scala-ab7857b7b2c122012bedb6e173753d41c1063efa.tar.bz2 scala-ab7857b7b2c122012bedb6e173753d41c1063efa.zip |
Improved the `scala.language` documentation
Also corrected the links in the library rootdoc.
**Note: We need to fast track this commit so it reaches master in the
next 12 hours, before we generate the next nightly docs.**
Review by @odersky
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/doc/html/HtmlPage.scala | 2 | ||||
-rw-r--r-- | src/compiler/scala/tools/nsc/doc/model/comment/CommentFactory.scala | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/doc/html/HtmlPage.scala b/src/compiler/scala/tools/nsc/doc/html/HtmlPage.scala index 2c719e5d70..b47e9f5784 100644 --- a/src/compiler/scala/tools/nsc/doc/html/HtmlPage.scala +++ b/src/compiler/scala/tools/nsc/doc/html/HtmlPage.scala @@ -117,7 +117,7 @@ abstract class HtmlPage extends Page { thisPage => case Underline(in) => <u>{ inlineToHtml(in) }</u> case Superscript(in) => <sup>{ inlineToHtml(in) }</sup> case Subscript(in) => <sub>{ inlineToHtml(in) }</sub> - case Link(raw, title) => <a href={ raw }>{ inlineToHtml(title) }</a> + case Link(raw, title) => <a href={ raw } target="_blank">{ inlineToHtml(title) }</a> case Monospace(in) => <code>{ inlineToHtml(in) }</code> case Text(text) => scala.xml.Text(text) case Summary(in) => inlineToHtml(in) diff --git a/src/compiler/scala/tools/nsc/doc/model/comment/CommentFactory.scala b/src/compiler/scala/tools/nsc/doc/model/comment/CommentFactory.scala index 1baa7f9831..924ebb8a3b 100644 --- a/src/compiler/scala/tools/nsc/doc/model/comment/CommentFactory.scala +++ b/src/compiler/scala/tools/nsc/doc/model/comment/CommentFactory.scala @@ -147,7 +147,7 @@ trait CommentFactory { thisFactory: ModelFactory with CommentFactory with Member case (group, body) => try { body match { - case Body(List(Paragraph(Chain(List(Summary(Text(prio))))))) => List(group -> prio.toInt) + case Body(List(Paragraph(Chain(List(Summary(Text(prio))))))) => List(group -> prio.trim.toInt) case _ => List() } } catch { |