Recent Changes - Search:

Cookbook

PmWiki

pmwiki.org

AddNewline

Summary: Make wiki text end with a newline character, so the last line won't be marked as changed if text is added at the bottom
Version: 2006-01-29
Prerequisites: Last tested on PmWiki version: pmwiki-2.1.beta22
Status:
Maintainer: floozy
Categories: Editing, Administration

Question

Diffs are more useful if the wiki text ends with a newline character, so the last line won't be marked as changed if text is added at the bottom. How to achieve this?

Answer

Add the following code to your local/config.php:

    $ROSPatterns["/\n*$/"] = "\n";

Contributors

  • floozy, 2006-01-29, Initial version
Edit - History - Print - Recent Changes - Search
Page last modified on March 22, 2007, at 09:35 PM