Not logged in. · Lost password · Register
Forum: General Help and Support Syntax and Usage RSS
<file>: new lines at the end missing
Avatar
Casper #1
Member since Jan 2010 · 10 posts
Group memberships: Members
Show profile · Link to this post
Subject: <file>: new lines at the end missing
Hi,

when I use the <file> tag, new lines at the end are stripped out:

<file>
hello world

</file>

This results in a single code line with "hello world" and missing the new line.

<file plain world.txt>
hello world

</file>

When downloading "world.txt" the new line at the end is also missing.

Is there a way to preserve all characters and new lines?

Thanks
Casper
Avatar
Michaelsy #2
Member since Jun 2015 · 969 posts · Location: Düsseldorf, Germany
Group memberships: Members
Show profile · Link to this post
Take a look at this pull request: https://github.com/splitbrain/dokuwiki/pull/2559

HTH - Michael Sy.
By Patreon.com a few eurons can be fed into the code phasers of
the DokuWiki engine. Besides, Andi's posts are worth reading.
Avatar
Casper #3
Member since Jan 2010 · 10 posts
Group memberships: Members
Show profile · Link to this post
Thanks for the hint.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-10-14, 20:29:46 (UTC +02:00)