00065: add outdent markup to PmWiki 1

Summary: add outdent markup to PmWiki 1
Created: 2004-10-02 01:44
Status: Closed -- added for 1.0.11.
Category: Feature
From: jr
Assigned:
Priority: 3
Version: 1.0.10
OS: all

Description: Only because it's trivial to do, but not as a local customisation...

In pmwiki.php:

After

    } elseif (preg_match("/^(-+)>/",$x,$match)) {
      $x=preg_replace("/^(-+)>/","<div class='indent'>",$x);
      EmitCode("indent",strlen($match[1]));

Add

    } elseif (preg_match("/^(-+)</",$x,$match)) {
      $x=preg_replace("/^(-+)</","<div class='outdent'>",$x);
      EmitCode("indent",strlen($match[1]));

In stdlayout.css:

After

    .indent { margin-left:40px; }

Add

    .outdent { margin-left:40px; text-indent: -40px; }

That's it.