Addressing emtpy captios for images.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2023-07-30 12:44:56 -05:00
parent d011f9c1c1
commit 90fa52653f

View File

@ -3,8 +3,8 @@ Extension { #name : #LePictureSnippet }
{ #category : #'*MiniDocs' }
LePictureSnippet >> asMarkdeep [
| output curatedCaption captionLines |
captionLines := self caption lines.
(captionLines size = 1)
captionLines := self caption lines.
(captionLines size <= 1)
ifTrue: [ curatedCaption := caption ]
ifFalse: [
curatedCaption := WriteStream on: ''.