[dokuwiki] Bug or feature in <file> parsing?

  • From: Werner Flamme <werner.flamme@xxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Wed, 26 Apr 2017 13:18:06 +0200

Hi list,

just a question concerning the <file> syntax.

I have a page containing a <file bash name.sh> ...</file> section. Or,
multiple pages of that :)

On one page I have a bash script I use to create server documentation.
There are several sections like

        if [ -f "$MYFILE" ]; then
            echo "++++ $MYFILE | <file - $MYFILE>" >> "$LOGFILE"
            grep '^[^#]' "$MYFILE"                 >> "$LOGFILE"
            echo '</file>'                         >> "$LOGFILE"
            echo '++++'                            >> "$LOGFILE"
        fi

The page renders fine, until it comes to the "echo '</file>'" part: here
the <file> element is broken, and the rest of the code (beginning with
the ' after </file>) is shown as plain text.

I did not see this behaviour before, so I don't know if it is intended.

At the moment, I replace all occurencies of '</file>' with '</ file'>
and everything renders well.

Regards,
Werner

-- 


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Other related posts: