Skip to content

Commit 9458d4d

Browse files
committed
CHANGE: modified single-line doc string for modules in the help output
1 parent d4e9476 commit 9458d4d

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/mezz/mezz-help.reb

+8-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ REBOL [
1313

1414
import module [
1515
Title: "Help related functions"
16-
Name: Help
16+
Name: help
1717
Version: 3.0.0
1818
Exports: [? help about usage what license source dump-obj]
1919
][
@@ -90,13 +90,18 @@ import module [
9090
a-an head clear back tail mold type? :value
9191
]
9292

93-
form-val: func [val /local limit] [
93+
form-val: func [val /local limit hdr tmp] [
9494
; Form a limited string from the value provided.
9595
val: case [
9696
string? :val [ mold/part/flat val max-desc-width]
9797
any-block? :val [ reform ["length:" length? val mold/part/flat val max-desc-width] ]
9898
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+
]
100105
any-function? :val [ any [title-of :val spec-of :val] ]
101106
datatype? :val [ get in spec-of val 'title ]
102107
typeset? :val [ to block! val]

0 commit comments

Comments
 (0)