内容へ移動
あにねこ電脳覚書
ユーザ用ツール
ログイン
サイト用ツール
検索
ツール
文書の表示
以前のリビジョン
バックリンク
最近の変更
メディアマネージャー
サイトマップ
ログイン
>
最近の変更
メディアマネージャー
サイトマップ
トレース:
linux:dokuwiki
この文書は読取専用です。文書のソースを閲覧することは可能ですが、変更はできません。もし変更したい場合は管理者に連絡してください。
====== Dokuwiki code download パッチ ====== dokuwikiで'code'や'file'ブロックからファイルをダウンロードすると、ファイル末尾の改行コードが削られているため、不都合が起こる場合がある(下記のパッチファイルのダウンロードが、正にその場合である)。ファイル末尾の改行コードを保存するため、dokuwikiのソースコードに下記の変更を加える。 <file - dokuwiki-code-download.patch> --- inc/parser/code.php.orig 2020-01-26 08:06:19.000000000 +0900 +++ inc/parser/code.php 2020-01-26 08:06:54.000000000 +0900 @@ -35,7 +35,7 @@ class Doku_Renderer_code extends Doku_Re header("Content-Type: text/plain; charset=utf-8"); header("Content-Disposition: attachment; filename=$filename"); header("X-Robots-Tag: noindex"); - echo trim($text, "\r\n"); + echo ltrim($text, "\r\n"); exit; } </file>
linux/dokuwiki.txt
· 最終更新: 2020/01/26 08:23 by
anineco
ページ用ツール
文書の表示
以前のリビジョン
バックリンク
文書の先頭へ