HELP{ $description "test " { $snippet "and" } " that" }
] unit-test
+{ { $description "test " { $snippet "and" } " that " { $snippet "the other" } "." } } [
+ HELP{ $description "test " { $snippet "and" } " that " { $snippet "the other" } "." }
+] unit-test
+
{ { $description "this and that" } } [
HELP{ $description this and that }
] unit-test
[ [ suffix! ] curry dip ] bi* ;
: push-help-space ( accum sbuf -- accum sbuf )
- {
- [ dup empty? not over ?last CHAR: \s eq? not and ]
- [ over empty? not pick ?last \ $nl eq? not and ]
- } 0|| [ CHAR: \s suffix! ] when ;
+ dup empty? [
+ over empty? not pick ?last \ $nl eq? not and
+ ] [
+ dup last CHAR: \s eq? not
+ ] if [ CHAR: \s suffix! ] when ;
:: parse-help-text ( -- seq )
V{ } clone SBUF" " clone [