diff --git a/src/Lepiter-HTML/LeHtmlTextSnippetAnnotationVisitor.class.st b/src/Lepiter-HTML/LeHtmlTextSnippetAnnotationVisitor.class.st index fa129bbd4..6441656aa 100644 --- a/src/Lepiter-HTML/LeHtmlTextSnippetAnnotationVisitor.class.st +++ b/src/Lepiter-HTML/LeHtmlTextSnippetAnnotationVisitor.class.st @@ -153,10 +153,13 @@ LeHtmlTextSnippetAnnotationVisitor >> visitMethodAnnotation: aMethodAnnotation [ ifTrue: [ 'expanded-annotation-view' ] ifFalse: [ 'collapsed-annotation-view' ]}} do: [ - context html - inlineTag: 'code' - attributes: #('class' '') - with: method sourceCode ] + context html + inlineTag: 'pre' + do: [ + context html + inlineTag: 'code' + attributes: #('class' '') + with: method sourceCode ] ] ] { #category : #generated }