Skip to content

Commit d7d9606

Browse files
committed
Fix line from sources
1 parent 7fce442 commit d7d9606

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

scala3doc/resources/dotty_res/styles/scalastyle.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,13 @@ th {
134134
padding: 8px 8px 8px 8px;
135135
vertical-align: middle;
136136
}
137-
#logo img{
137+
138+
#logo img {
138139
max-height: 54px;
139140
max-width: 54px;
140141
cursor: pointer;
141142
}
143+
142144
#logo .projectName {
143145
color: var(--leftbar-fg);
144146
font-size: 28px;

scala3doc/src/dotty/dokka/SourceLinks.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ case class SourceLinks(links: Seq[SourceLink], projectRoot: Path):
8585
else resolveRelativePath(rawPath)
8686

8787
def pathTo(member: Member): Option[String] =
88-
member.sources.flatMap(s => pathTo(Paths.get(s.path), Option(s.lineNumber)))
88+
member.sources.flatMap(s => pathTo(Paths.get(s.path), Option(s.lineNumber).map(_ + 1)))
8989

9090
object SourceLinks:
9191

0 commit comments

Comments
 (0)