mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-30 05:19:57 +00:00
Fix missing tiddler with code body isn't displayed properly. (#8604)
This commit is contained in:
parent
0f4d6e4e47
commit
19990802fa
@ -1,4 +1,8 @@
|
||||
title: $:/core/ui/ViewTemplate/body/code
|
||||
|
||||
<%if [<currentTiddler>is[missing]] %>
|
||||
<$transclude tiddler="$:/language/MissingTiddler/Hint"/>
|
||||
<%else%>
|
||||
<$transclude $variable="copy-to-clipboard-above-right" src={{{ [<currentTiddler>get[text]] }}} />
|
||||
<$codeblock code={{{ [<currentTiddler>get[text]] }}} language={{{ [<currentTiddler>get[type]else[text/vnd.tiddlywiki]] }}}/>
|
||||
<%endif%>
|
Loading…
Reference in New Issue
Block a user