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.
Closed
Duplicate
FS#2862 Issue using the <file>/<code> sections
Syntax
2013-10-09atisne
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.
Sample:
please give a <filename>
when required
then continue here<file>aa
bb
cc</file>
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.
2013-10-11Klap-in
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
dd
>
when required
then continue here<code>aa
bb
cc</code>
2013-10-11ach
I can reproduce `<filename>` triggering a code section. You can try on dokuwiki.org. I would consider that a valid bug.
2013-10-11atisne
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.
2013-10-11Klap-in
@ "<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.
2013-10-11atisne
I found this behaviour in a previous version and I checked in the sandbox of www.dokuwiki.org.
Refer FS#2270. Already fixed in master, see PR#241
2013-10-12ChrisS
Oops - FS# in close comment is mistyped - it should be FS#2770. Sorry.
2013-10-12Klap-in
@ChrisS: why doesn't work this at dokuwiki.org (see the playground post above), needs dokuwiki.org a update since July?
2013-10-12Klap-in
Remark 1: The unit tests at my wiki works correct, so <filename> seems fixed correctly.
Remark 2: I assume dokuwiki.org needs an update for long time...
Question: is it desired that a code tag cover more lines, i.e. "<code ...\n... >"
2013-10-14ChrisS
i don't think its worth solving - the added complexity for the regex isn't worth it.