Skip to content

Commit 6f0e48a

Browse files
committed
Pretend displayed file paths come from a fictional directory. These are displayed for "file not found" errors, and they've usually revealed who built the documentation last.
1 parent feeb754 commit 6f0e48a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

_ref/template.arc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@
7575
(is result-string "#<thread>"))
7676
(= result result-string))
7777

78+
; Pretend displayed file paths come from a fictional directory
79+
(zap [subst "/path/to/doc/" (subst "" "\n" (tostring (system "pwd"))) _] stdout-val)
80+
7881
(if (no (is "" stdout-val)) (spanclass "stdout" (prn (html-esc (splitstring stdout-val 60)))))
7982
(when (and (isnt 'html testtype) (isnt 'err result))
8083
(spanclass "return" (prn (html-esc result-string))))

0 commit comments

Comments
 (0)