diff --git a/MODULE.bazel b/MODULE.bazel index 3ae063e51..fc6af554b 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -89,7 +89,7 @@ maven.install( use_repo(maven, "kotlin_rules_maven", "unpinned_kotlin_rules_maven") bazel_dep(name = "rules_pkg", version = "0.7.0") -bazel_dep(name = "stardoc", version = "0.5.6", repo_name = "io_bazel_stardoc") +bazel_dep(name = "stardoc", version = "0.7.0", repo_name = "io_bazel_stardoc") bazel_dep(name = "rules_proto", version = "5.3.0-21.7") bazel_dep(name = "rules_testing", version = "0.5.0", dev_dependency = True) diff --git a/kotlin/doc-templates/rule.vm b/kotlin/doc-templates/rule.vm index 9025a374b..1f68a4885 100644 --- a/kotlin/doc-templates/rule.vm +++ b/kotlin/doc-templates/rule.vm @@ -6,7 +6,10 @@ ${util.ruleSummary($ruleName, $ruleInfo)} ## find common nonzero indent #set($chomp=0) -#foreach ($ln in $ruleInfo.docString.split("\n")) +## > Stardoc 6.0.0 The Markdown renderer now uses Google EscapeVelocity instead of Apache Velocity for templating. +## No more \n in templating rules. :/ +#foreach ($ln in $ruleInfo.docString.split(" +")) #if ($ln.length() > 0) #foreach ($c in [0..$ln.length()]) #if (!$ln.substring(0, $c).trim().isEmpty()) @@ -22,7 +25,10 @@ ${util.ruleSummary($ruleName, $ruleInfo)} #end ## print lines, removing common indent. -#foreach ($ln in $ruleInfo.docString.split("\n")) +## > Stardoc 6.0.0 The Markdown renderer now uses Google EscapeVelocity instead of Apache Velocity for templating. +## No more \n in templating rules. :/ +#foreach ($ln in $ruleInfo.docString.split(" +")) #if ($ln.length() >= $chomp && $ln.substring(0, $chomp).trim().isEmpty()) ${ln.substring($chomp)} #else