WWW-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: wikisrc/templates



Module Name:    wikisrc
Committed By:   riastradh
Date:           Sun Jul 19 01:15:21 UTC 2026

Modified Files:
        wikisrc/templates: filecontent.mdwn

Log Message:
templates/filecontent: Try to make this work in indented context.

Currently, e.g., https://wiki.NetBSD.org/tutorials/kerberos_client
renders

> 1. Create a directory ~/.krb5 and a file ~/.krb5/config with the
>    following content to enable Kerberos on the client side:
>
>    [[!template id=filecontent name="~/.krb5/config" text="""
> [libdefaults]
>       name_canon_rules = as-is:
> """]]

with the HTML fragment:

--------8<---------
<ol>
<li><p>Create a directory ~/.krb5 and a file ~/.krb5/config with the
following content to enable Kerberos on the client side:</p>

<p><fieldset>
<legend>~/.krb5/config</legend></p></li>
</ol>

<pre>
[libdefaults]
    name_canon_rules = as-is:
</pre>

<p></fieldset></p>
-------->8---------

This is full of <p>...</p> around opening and closing tags, rather
than balanced elements, which I hypothesize happens because of the
line breaks in the template.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 wikisrc/templates/filecontent.mdwn

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Home | Main Index | Thread Index | Old Index