Make print-topic print a newline and adjust usages elsewhere. Reported by mrjbq7.
parent
1e78347643
commit
9b97f22b92
|
@ -71,4 +71,4 @@ M: apropos >link ;
|
|||
INSTANCE: apropos topic
|
||||
|
||||
: apropos ( str -- )
|
||||
[ blank? ] trim <apropos> print-topic nl ;
|
||||
[ blank? ] trim <apropos> print-topic ;
|
||||
|
|
|
@ -127,11 +127,11 @@ M: word set-article-parent swap "help-parent" set-word-prop ;
|
|||
: print-topic ( topic -- )
|
||||
>link
|
||||
last-element off
|
||||
[ $title ] [ ($blank-line) article-content print-content ] bi ;
|
||||
[ $title ] [ ($blank-line) article-content print-content nl ] bi ;
|
||||
|
||||
SYMBOL: help-hook
|
||||
|
||||
help-hook [ [ print-topic nl ] ] initialize
|
||||
help-hook [ [ print-topic ] ] initialize
|
||||
|
||||
: help ( topic -- )
|
||||
help-hook get call( topic -- ) ;
|
||||
|
|
Loading…
Reference in New Issue