Fixing for nil values.
This commit is contained in:
parent
781f6fde63
commit
c8c50288cf
@ -46,7 +46,7 @@ Markdeep >> authorsString [
|
|||||||
|
|
||||||
{ #category : #accessing }
|
{ #category : #accessing }
|
||||||
Markdeep >> body [
|
Markdeep >> body [
|
||||||
^ body
|
^ body ifNil: [^ '' ]
|
||||||
]
|
]
|
||||||
|
|
||||||
{ #category : #accessing }
|
{ #category : #accessing }
|
||||||
@ -292,7 +292,6 @@ Markdeep >> options [
|
|||||||
|
|
||||||
{ #category : #printing }
|
{ #category : #printing }
|
||||||
Markdeep >> printOn: aStream [
|
Markdeep >> printOn: aStream [
|
||||||
|
|
||||||
super printOn: aStream.
|
super printOn: aStream.
|
||||||
aStream
|
aStream
|
||||||
nextPutAll: '( ', self title accentedCharactersCorrection, ' )'
|
nextPutAll: '( ', self title accentedCharactersCorrection, ' )'
|
||||||
@ -451,7 +450,7 @@ Markdeep >> tail: anObject [
|
|||||||
{ #category : #accessing }
|
{ #category : #accessing }
|
||||||
Markdeep >> title [
|
Markdeep >> title [
|
||||||
|
|
||||||
^ title ifNil: [ title := self metadata at: 'title' ]
|
^ title ifNil: [ title := self metadata at: 'title' ifAbsent: [ '' ] ]
|
||||||
]
|
]
|
||||||
|
|
||||||
{ #category : #accessing }
|
{ #category : #accessing }
|
||||||
|
Loading…
Reference in New Issue
Block a user