00269: %right% need blank line before and after

Summary: %right% need blank line before and after
Created: 2005-01-05 18:57
Status: Closed - not a bug
Category: Bug
From: Simon
Assigned:
Priority: 3
Version: 2b14
OS: n/a

Description: I want to achieve markup which is right aligned, smaller, italic, and bold. The PM wiki markup to achieve this should be

%right%[-'''''right aligned italic bold smaller font example'''''-]

but this does not work for me unless there is a blank line before and after it

right aligned italic bold smaller font example

before
%right%[-'''''right aligned italic bold smaller font example'''''-]
after

before right aligned italic bold smaller font example after


right aligned italic bold smaller font example


Hmmm, let's see. The basic problem is that in order for %right% to have any effect, it must appear in the first line of whatever block it's intended to affect. So, in the before/after case above, %right% can't really do anything because the paragraph (<p>) started on the previous line and has already been processed.

One solution is to make sure that %right% gets its own block, as in:

before
->%right%[-'''''right aligned italic bold smaller font example'''''-]
after

before

right aligned italic bold smaller font example

after

which may give you what you're looking for.

--Pm