File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,8 @@ dist/target/pack/bin/scaladoc \
31
31
-Ygenerate-inkuire \
32
32
" -skip-by-id:scala.runtime.stdLibPatches" \
33
33
" -skip-by-id:scala.runtime.MatchCase" \
34
+ " -siteroot scaladoc-testcases/docs" \
35
+ " -snippet-compiler=scaladoc-testcases/docs=compile" \
34
36
-project-footer " Copyright (c) 2002-2021, LAMP/EPFL" \
35
37
-author -groups -revision master -project-version " ${DOTTY_BOOTSTRAPPED_VERSION} " \
36
38
out/bootstrap/scaladoc-testcases/scala-" ${DOTTY_NONBOOTSTRAPPED_VERSION} " /classes > " $tmp " 2>&1 || echo " generated testcases project with scripts"
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ object SnippetRenderer:
65
65
if elem.content.startsWith(currPrefix) then currPrefix else elem.content.takeWhile(_ == ' ' )
66
66
}
67
67
snippetLines.map { line =>
68
- if line.classes.contains(" hideable" ) then line
68
+ if line.classes.contains(" hideable" ) || maxCommonIndent.size == 0 then line
69
69
else line.copy(content = span(cls := " hideable" )(maxCommonIndent).toString + line.content.stripPrefix(maxCommonIndent))
70
70
}
71
71
}.getOrElse(snippetLines)
You can’t perform that action at this time.
0 commit comments