I don't care what the markup looks like, but the function is very very
useful.

More background: I'm getting the ((post_content)) out of a WordPress
database. Your suggestion of putting the entire WordPress post inside a
<blockquote> misses the point.

In WordPress, authors use linebreaks in their post, with the expectation
that WordPress will convert those linebreaks into <p>'s. I am trying to
mimic that behavior.

I doubt a WordPress author is going to have a <span> that opens in one
paragraph and closes in the next, so your <span> example also misses the
point, although it does make me wonder how WordPress handles that edge
case.

-- 
You received this bug notification because you are a member of Aiki
Framework Developers, which is subscribed to aikiframework.
https://bugs.launchpad.net/bugs/925356

Title:
  The [p[ ]p] command can create invalid markup in certain edge cases

Status in Aiki Framework:
  New

Bug description:
  I noticed this while creating an RSS feed in Aiki:

  Let's say my ((post_content)) looks like this:

  ===0
  <blockquote>this is paragraph one

  This is paragraph 2</blockquote>
  ===0

  Then the output of [p[ ((post_content)) ]p] will be

  ====
  <p>
  <blockquote>this is paragraph one</p><p>
  This is paragraph 2</blockquote></p><p>
  ====

  You see how the </p><p> is located INISDE the <blockquote>?

  This will generate an invalid XML warning:

  Opening and ending tag mismatch: blockquote line 0 and p

  My temporary fix is to use [br[ instead of [p[

  But it would be nice if [p[ doesn't ever produce invalid markup!

To manage notifications about this bug go to:
https://bugs.launchpad.net/aikiframework/+bug/925356/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~aikiframework-devel
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~aikiframework-devel
More help   : https://help.launchpad.net/ListHelp

Reply via email to