fuel.help: fix for a small help bug on vocabs without words in them

modern-harvey2
Björn Lindqvist 2017-06-26 15:53:54 +02:00
parent 81446d7948
commit eb62e1fe4e
2 changed files with 8 additions and 1 deletions

View File

@ -16,3 +16,9 @@ IN: fuel.help.tests
{ { $next-link POSTPONE: unit-test "unit-test" } } [
\ unit-test >link \ $next-link next/prev-link
] unit-test
{
{ describe-words f }
} [
"help.handbook" vocab-describe-words
] unit-test

View File

@ -75,7 +75,8 @@ SYMBOL: describe-words
disk-vocabs-for-prefix do-vocab-list ; inline
: vocab-describe-words ( name -- element )
[ words. ] with-string-writer \ describe-words swap 2array ; inline
[ words. ] with-string-writer dup "\n" = [ drop f ] when
\ describe-words swap 2array ; inline
: vocab-element ( name -- element )
dup require \ article swap dup >vocab-link