PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Text » Text_Wiki » Bug #927

two bugs with paragraphs

Details

Submitted2004-02-29 15:38 UTC
Fromh_wendel at cojobo dot net
Assignedpmjones
StatusClosed
PackageText_Wiki
PHP Version4.3.4
OSgentoo
Roadmaps(Not assigned)

Comments

[2004-02-29 15:38 UTC] h_wendel at cojobo dot net

Description:
------------
I found three bugs (at least i think they are bugs), this are bugs that
make Text_Wiki really useless for me, otherwise it's just great, any help is
welcome :)

the first one:

Code:
-----
Text Text Text

* list
* list
-----

Result:
-----
Text Text Text

<ul>
<li>list</li>
<li>list</li>
</ul>
-----

Expected Result:
-----
<p>Text Text Text</p>

<ul>
<li>list</li>
<li>list</li>
</ul>
-----


the second one:

Code:
-----
Text Text Text.
Text Text Text.

Text Text Text.

-----

Result:
-----
Text Text Text.
<p>Text Text Text.</p>
<p>Text Text Text.</p>
-----

Expected Result:
-----
<p>Text Text Text.<br/>Text Text Text.</p>

<p>Text Text Text.</p>

and the third one:

Code:
-----
Text Text Text.

Text Text Text.
-----

Result:
-----
<p>Text Text Text.</p>
Text Text Text.
-----

Expected Result:
-----
<p>Text Text Text.</p>

<p>Text Text Text.</p>

[2004-02-29 15:40 UTC] h_wendel at cojobo dot net

I found three bugs (at least i think they are bugs), this
are bugs that make Text_Wiki really useless for me,
otherwise it's just great, any help is welcome :)

the first one:

Code:
-----
Text Text Text

* list
* list
-----

Result:
-----
Text Text Text

<ul>
<li>list</li>
<li>list</li>
</ul>
-----

Expected Result:
-----
<p>Text Text Text</p>

<ul>
<li>list</li>
<li>list</li>
</ul>
-----


the second one:

Code:
-----
Text Text Text.

Text Text Text.
-----

Result:
-----
<p>Text Text Text.</p>
Text Text Text.
-----

Expected Result:
-----
<p>Text Text Text.</p>

<p>Text Text Text.</p>
-----

and the third one:


Code:
-----
Text Text Text.
Text Text Text.

Text Text Text.

-----

Result:
-----
Text Text Text.
<p>Text Text Text.</p>
<p>Text Text Text.</p>
-----

Expected Result:
-----
<p>Text Text Text.<br/>Text Text Text.</p>

<p>Text Text Text.</p>
-----

[2004-03-03 14:08 UTC] h_wendel at cojobo dot net

Thanks for your quick reply and fix :)

Although I said it were two bugs in the Subject, it were
three that i posted. You forgot this one (a workaround is
two add two newlines between the paragraph and the list,
but it works this way for tables, etc.):

Code:
-----
Text Text Text

* list
* list
-----

Result:
-----
Text Text Text

<ul>
<li>list</li>
<li>list</li>
</ul>
-----

Expected Result:
-----
<p>Text Text Text</p>

<ul>
<li>list</li>
<li>list</li>
</ul>
-----

I see that the <br/> thing is not a bug, but do you have
any idea how to implement it, it is very important for me.

mfg, heinrich

[2004-03-14 10:41 UTC] h_wendel at cojobo dot net

sorry for bugging you again, but it still doesn't work :/

[2004-03-14 12:21 UTC] h_wendel at cojobo dot net

You rock guy :)

Now i'm only waiting for the <br/> rule ;)