From 19990802fa75345bb16a118d46ef6f65c80e21d7 Mon Sep 17 00:00:00 2001 From: Leilei332 Date: Mon, 16 Sep 2024 17:39:50 +0800 Subject: [PATCH] Fix missing tiddler with code body isn't displayed properly. (#8604) --- core/ui/ViewTemplate/body/code.tid | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/ui/ViewTemplate/body/code.tid b/core/ui/ViewTemplate/body/code.tid index 9d2250395..ac678dd53 100644 --- a/core/ui/ViewTemplate/body/code.tid +++ b/core/ui/ViewTemplate/body/code.tid @@ -1,4 +1,8 @@ title: $:/core/ui/ViewTemplate/body/code +<%if [is[missing]] %> +<$transclude tiddler="$:/language/MissingTiddler/Hint"/> +<%else%> <$transclude $variable="copy-to-clipboard-above-right" src={{{ [get[text]] }}} /> <$codeblock code={{{ [get[text]] }}} language={{{ [get[type]else[text/vnd.tiddlywiki]] }}}/> +<%endif%> \ No newline at end of file