Skip to content

Commit

Permalink
Make breakable text into See also block (#2267)
Browse files Browse the repository at this point in the history
  • Loading branch information
vmishenev authored Dec 9, 2021
1 parent 4dc0654 commit d219894
Showing 1 changed file with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -442,12 +442,18 @@ open class DefaultPageCreator(
kind = ContentKind.Comment,
styles = this@group.mainStyles,
) {
if (it.address != null) link(
it.address?.let { dri ->
link(
it.name,
dri,
kind = ContentKind.Comment,
styles = mainStyles + ContentStyle.RowTitle
)
} ?: text(
it.name,
it.address!!,
kind = ContentKind.Comment
kind = ContentKind.Comment,
styles = mainStyles + ContentStyle.RowTitle
)
else text(it.name, kind = ContentKind.Comment)
comment(it.root)
}
}
Expand Down

0 comments on commit d219894

Please sign in to comment.