Skip to content

Commit

Permalink
fix: allow multi-arg roles when generating string previews
Browse files Browse the repository at this point in the history
  • Loading branch information
david-christiansen committed Jan 31, 2025
1 parent d9c0352 commit fa26ae2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/verso/Verso/Doc/Elab/Monad.lean
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ def _root_.Verso.Syntax.code.inline_to_string : InlineToString

@[inline_to_string Verso.Syntax.role]
def _root_.Verso.Syntax.role.inline_to_string : InlineToString
| env, `(inline| role{ $_ $_* }[ $body ]) =>
inlineToString env body
| env, `(inline| role{ $_ $_* }[ $body* ]) =>
String.join (body.toList.map (inlineToString env <| ·.raw))
| _, _ => none

@[inline_to_string null]
Expand Down

0 comments on commit fa26ae2

Please sign in to comment.