Skip to content

Commit

Permalink
Make print-topic print a newline and adjust usages elsewhere. Reporte…
Browse files Browse the repository at this point in the history
…d by mrjbq7.
  • Loading branch information
erg committed Apr 10, 2011
1 parent 10260e5 commit 9e7e2b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion basis/help/apropos/apropos.factor
Expand Up @@ -71,4 +71,4 @@ M: apropos >link ;
INSTANCE: apropos topic

: apropos ( str -- )
[ blank? ] trim <apropos> print-topic nl ;
[ blank? ] trim <apropos> print-topic ;
4 changes: 2 additions & 2 deletions basis/help/help.factor
Expand Up @@ -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 -- ) ;
Expand Down

0 comments on commit 9e7e2b9

Please sign in to comment.