On Sunday, August 9, 2020 at 7:48:27 PM UTC-7, amreus wrote:
>
> Trying to understand templates and macros. Can someone see why the HTML
> is bleeding through from my template and/or macros?
> http://amreus.tiddlyspot.com/
>
In personViewTemplate, you have an opening <p>, but no matching </p>
Although it has been common practice to use <br> and <p> as *unmatched *HTML
tags,
they are actually supposed to be *matched *with corresponding </br> and
</p> tags
For <br>, you can still get away with leaving it unmatched, or use <br />
to terminate it right away.
For <p>, you really have to match it, or use <p /> to terminate it right
away.
Thus, two possible fixes for your template:
<$list filter="[all[current]tag[person]]">
<fieldset>
<legend> [[personViewTemplate]] </legend>
Born {{!!birt-date}}
<p>
<<parents>>
<<siblings>>
<<children>>
</p>
</fieldset>
</$list>
or
<$list filter="[all[current]tag[person]]">
<fieldset>
<legend> [[personViewTemplate]] </legend>
Born {{!!birt-date}}
<p/>
<<parents>>
<<siblings>>
<<children>>
</fieldset>
</$list>
enjoy,
-e
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/6e4e8f11-6cee-46d1-9739-378699040befo%40googlegroups.com.