From 66526fb8da9ab47fa36866bfb338ca3d5269a661 Mon Sep 17 00:00:00 2001 From: Offray Luna Date: Mon, 10 Jan 2022 18:45:50 -0500 Subject: [PATCH] Improving oracles options exportation. --- .../SfOracle.class/instance/optionsWikiTextRow..st | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/RoloLudo.package/SfOracle.class/instance/optionsWikiTextRow..st b/RoloLudo.package/SfOracle.class/instance/optionsWikiTextRow..st index 55fed40..036623a 100644 --- a/RoloLudo.package/SfOracle.class/instance/optionsWikiTextRow..st +++ b/RoloLudo.package/SfOracle.class/instance/optionsWikiTextRow..st @@ -7,14 +7,14 @@ optionsWikiTextRow: value nextPutAll: (value at: 'Description'), ' |'. value keys size > 1 ifTrue: [ | remaining cell | remaining := value copy removeKey: 'Description'; yourself. - cell := remaining values. + cell := remaining values first. cell class = Array ifTrue: [ - cell first doWithIndex: [:each :i | - output nextPutAll: '[[', each asString,']] '. - (i % 2 = 1) ifTrue: [output nextPutAll: '; ' ] + cell doWithIndex: [:each :i | + output nextPutAll: '[[', each asString,']]'. + (i = cell size) ifFalse: [output nextPutAll: '; ' ] ] ]. - output nextPutAll: '|'. + output nextPutAll: ' |'. ]. ^ output contents \ No newline at end of file