From b5d60733dc23b3e1bd6f3d02f98e229da7515e8d Mon Sep 17 00:00:00 2001 From: Offray Luna Date: Fri, 7 Nov 2014 12:53:58 +0000 Subject: [PATCH] Working on ancestors which start with '%invisible'. --- repository/Grafoscopio/GrafoscopioNode.class.st | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/repository/Grafoscopio/GrafoscopioNode.class.st b/repository/Grafoscopio/GrafoscopioNode.class.st index 493db87..5850591 100644 --- a/repository/Grafoscopio/GrafoscopioNode.class.st +++ b/repository/Grafoscopio/GrafoscopioNode.class.st @@ -105,7 +105,9 @@ GrafoscopioNode >> asMarkdown [ markdownOutput := '' writeStream. (self preorderTraversal) do: [ :eachNode | - (eachNode level > 0) ifTrue: [(eachNode ancestorsHeaders includes: '%invisible') not ifTrue: [ markdownOutput nextPutAll: (eachNode markdownContent) ]]]. + (eachNode level > 0) ifTrue: [ + (eachNode ancestorsHeaders includes: '%invisible') not + ifTrue: [ markdownOutput nextPutAll: (eachNode markdownContent) ]]]. ^markdownOutput contents @@ -272,7 +274,7 @@ GrafoscopioNode >> markdownContent [ | markdown configDict specialWords embedNodes temporalBody invisibleChildren | markdown := '' writeStream. specialWords := #('%config' '%abstract' '%invisible' '%idea' '%footnote' 'nuevoNodo' '%embed'). - (self level > 0) & (specialWords includes: self header) not & (specialWords includes: ((self header findTokens: $ ) at: 1)) not + (specialWords includes: self header) not & (specialWords includes: ((self header findTokens: $ ) at: 1)) not ifTrue: [ self level timesRepeat: [ markdown nextPutAll: '#' ]. markdown nextPutAll: ' '.