mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-02-23 10:29:51 +00:00
Compare commits
1 Commits
import-slo
...
transclusi
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d5e7dfeaff |
@@ -390,7 +390,7 @@ Widget.prototype.computeAttributes = function(options) {
|
||||
if($tw.utils.isArray(value)) {
|
||||
multiValue = value;
|
||||
newMultiValuedAttributes[name] = multiValue;
|
||||
value = value[0] || "";
|
||||
value = value[0];
|
||||
}
|
||||
var changed = (self.attributes[name] !== value);
|
||||
if(!changed && multiValue && self.multiValuedAttributes) {
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
title: Transclude/MissingTiddlerAttribute
|
||||
description: Missing Tiddler Attribute
|
||||
type: text/vnd.tiddlywiki-multiple
|
||||
tags: [[$:/tags/wiki-test-spec]]
|
||||
|
||||
title: Output
|
||||
|
||||
\procedure testproc()
|
||||
This is ''wikitext''
|
||||
\end
|
||||
|
||||
|
||||
<$tiddler tiddler="Data">
|
||||
<$transclude $index="testindex"/>
|
||||
-
|
||||
{{##testindex}}
|
||||
-
|
||||
<$transclude $field="custom"/>
|
||||
-
|
||||
{{!!custom}}
|
||||
</$tiddler>
|
||||
+
|
||||
title: Data
|
||||
type: application/x-tiddler-dictionary
|
||||
custom: This is ''wikitext''
|
||||
|
||||
testindex: This is ''wikitext''
|
||||
+
|
||||
title: ExpectedResult
|
||||
|
||||
<p>
|
||||
This is <strong>wikitext</strong>
|
||||
-
|
||||
This is <strong>wikitext</strong>
|
||||
-
|
||||
This is <strong>wikitext</strong>
|
||||
-
|
||||
This is <strong>wikitext</strong>
|
||||
</p>
|
||||
Reference in New Issue
Block a user