00074: search results are wrapped in <p> and </p> tags

Summary: search results are wrapped in <p> and </p> tags
Created: 2004-10-06 22:44
Status: Closed - fixed for 2.0.beta18
Category: Bug
From: jr
Assigned:
Priority: 2
Version: 2.0 dev 11
OS: all

Description: Search results page produces:

  <p>Results of search for <em>toc</em>:
  <p class='vspace'></p><dl class='fplbygroup'>
  ...</dl>
  <p class='vspace'></p>4 pages found out of 51 pages searched.
  <p class='vspace'></p>
  </p>

It should perhaps produce

  <p>Results of search for <em>toc</em>:
  </p><p class='vspace'></p><dl class='fplbygroup'>
   ...</dl>
  <p class='vspace'></p>4 pages found out of 51 pages searched.
  <p class='vspace'></p><p>
  </p>

This is definitely a bug. Unfortunately, the fix isn't quite so easy--the best I can come up with is to treat [:searchresults:] as a block level markup instead of inline markup. I'll come up with a fix eventually... --Pm


Fixed for 2.0.beta18. PmWiki now considers any line containing an HTML block markup to appear in its own "top-level" <div> unless there's already a block identifier at the start of the line. --Pm