[pmwiki-users] very small definition list (mis-)feature request

John Rankin john.rankin at affinity.co.nz
Thu Sep 28 21:03:46 CDT 2006


On Friday, 29 September 2006 11:18 AM, Patrick R. Michaud <pmichaud at pobox.com> wrote:
>On Fri, Sep 29, 2006 at 09:57:22AM +1200, John Rankin wrote:
>> While browsing pmwiki.php 2.1.25 source (as you do), 
>> I noticed near the end of function Block the line:
>> 
>>     $out .= ... .'<dd>';
>> 
>> Whatever this does, it will break wikipublisher.
>
>Wow, is *that* still there?!?  ;-)
>
>I  think  this is handling the case where the markup "skips"
>an indent level, as in:
>
>    * This is a first-level list item
>    *** This is a third-level list item
>
>What I think I was doing here is using an extra <dl>...</dl>
>item to achieve the extra level of nested indent.  Arguably
>this is very incorrect from an HTML/semantic point of view.
>It also pre-dates the time when we had the ---> indent markup
>available, which would arguably be a lot more correct and would
>avoid the problem of the hardcoded <dd>.
>
>So, I propose to switch the Block function to use <div class='indent'>
>instead of <dl> for any skipped indentation levels.  This would
>entirely eliminate the need for the hardcoded <dd> tag, make
>the overall HTML cleaner, and move PmWiki even closer to being
>markup agnostic.
>
>Does that work?
>
>Pm
>
So it would use something like: $BlockMarkups['indent'][0] ?
That should work for us, as we redefine the $BlockMarkups
array. 

Maybe pmwiki needs a display symbol that indicates
"Um, did you *really* mean to write that?" and a markup
directive to tell pmwiki "butt out; I know what I'm doing".

Not to be confused with a certain Word processor that
issues "Silly you, of *course* you didn't mean that;
I'll go ahead and change it for you". Leaving the
poor writer looking for the menu option that means
"Excuse me? Who is in charge here? Don't *do* that!"

-- 
JR
--
John Rankin







More information about the pmwiki-users mailing list