File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ REBOL [
13
13
14
14
import module [
15
15
Title: "Help related functions"
16
- Name: Help
16
+ Name: help
17
17
Version: 3.0.0
18
18
Exports: [? help about usage what license source dump-obj]
19
19
][
@@ -90,13 +90,18 @@ import module [
90
90
a-an head clear back tail mold type? :value
91
91
]
92
92
93
- form-val : func [ val /local limit] [
93
+ form-val : func [ val /local limit hdr tmp ] [
94
94
; Form a limited string from the value provided.
95
95
val: case [
96
96
string? :val [ mold /part/flat val max-desc-width]
97
97
any-block? :val [ reform ["length:" length? val mold /part/flat val max-desc-width] ]
98
98
object? :val [ words-of val ]
99
- module? :val [ words-of val ]
99
+ module? :val [
100
+ hdr: spec-of :val
101
+ either val: select hdr 'title [ if #"." <> last val [append val #"." ] ][ val: copy "" ]
102
+ if tmp: select hdr 'exports [ append append val #" " mold /flat tmp ]
103
+ val
104
+ ]
100
105
any-function? :val [ any [title-of :val spec-of :val ] ]
101
106
datatype? :val [ get in spec-of val 'title ]
102
107
typeset? :val [ to block! val]
You can’t perform that action at this time.
0 commit comments