diff --git a/src/MiniDocs/LeDatabase.extension.st b/src/MiniDocs/LeDatabase.extension.st index 9ac431a..de501c0 100644 --- a/src/MiniDocs/LeDatabase.extension.st +++ b/src/MiniDocs/LeDatabase.extension.st @@ -61,11 +61,22 @@ LeDatabase >> addPageFromMarkdeep: markdeepDocTree withRemote: externalDocLocati (self hasBlockUID: snippet uid) ifTrue: [ | existingPage | existingPage := self pages - detect: [ :pageTemp | pageTemp includesSnippetUid: snippet uid ] ifNone: [ ^ snippet ]. - self importErrorForLocal: existingPage withRemote: externalDocLocation. - ^ self ] - ifFalse: [ snippet database: self. - self registerSnippet: snippet ] ]. + detect: [ :pageTemp | pageTemp includesSnippetUid: snippet uid ] + ifFound: [ + self importErrorForLocal: existingPage withRemote: externalDocLocation. + ^ self + ] + ifNone: [ + snippet database: self. + self registerSnippet: snippet + ]. + + ] + ifFalse: [ + snippet database: self. + self registerSnippet: snippet + ] + ]. self addPage: page. ^ page ]