Explainer.st
changeset 3891 15ad4e20f7ea
parent 3889 e19003c34a9a
child 3892 92e78fd2023b
child 3902 e9c6e1b34b65
--- a/Explainer.st	Wed May 18 13:02:05 2016 +0200
+++ b/Explainer.st	Wed May 18 13:02:30 2016 +0200
@@ -582,7 +582,11 @@
     methodComment isEmptyOrNil ifTrue:[
         ^ methodDecl
     ].
-    lines := methodComment asStringCollection.
+    lines := methodComment asStringCollection withoutLeadingAndTrailingBlankLines.
+    lines isEmptyOrNil ifTrue:[
+        ^ methodDecl
+    ].
+    
     firstIndent := 0.
     lines size > 1 ifTrue:[
         |line2|