This is a static dump of issues in the old "Flyspray" bugtracker for DokuWiki. Bugs and feature requests
are now tracked at the issue tracker at Github.
FS#2862 Issue using the <file>/<code> sections
If the content of the page contains the pattern '<file' or '<code' following by anything else, it will be wrongly interpreted as a wiki tag. This may imply surprising results.
please give a <filename>
then continue here<file>aa
The file section seems to begin to the text '<filename>'.
If the beginning of a file section is detected using the pattern '<file', we could rather use '<file '.
There is a same behaviour with the code section.
Here "<filename>" never triggers a code section.
"<file anyTextHereAfterASpace>" starts a code section because it is valid DokuWiki syntax.
When you don't like the interpretation by dokuwiki, please wrap it with "<nowiki>...</nowiki>" or "%%..%%"
This disables interpretation.
In the next example the first "<code ...\n... >" triggers a code section too, is this desired?
please give a <code aa bb cc
then continue here<code>aa
I can reproduce `<filename>` triggering a code section. You can try on dokuwiki.org. I would consider that a valid bug.
I think "<filename>" begins a code section.
If you try the given sample, you can see that
* filename is never displayed
* <file> is diplay *inside* a file section
* the file section ends normally at </file>
You're right, the <nowiki> tag is a way to avoid this. I'm agree it's safer by not very convenient.
I talk about <code> because the behaviour is the same. Not for something else.
@ "<filename> ... </file>" in my wiki i'm not able to trigger a code section by this, but at dokuwiki.org i'm. Strange, don't why it should differ.
I found this behaviour in a previous version and I checked in the sandbox of www.dokuwiki.org.