fuel.help: fix for a small help bug on vocabs without words in them
parent
81446d7948
commit
eb62e1fe4e
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue