FAQ
Edit report at https://pear.php.net/bugs/bug.php?id=18625&edit=1

ID: 18625
Updated by: daniel.oconnor@gmail.com
Reported By: kenorb at o2 dot pl
Summary: HTML tags followed by space are not rendered
correctly
-Status: Open
+Status: Feedback
Type: Bug
Package: Text_Wiki_Mediawiki
Operating System: Mac
Package Version: SVN
PHP Version: 5.3.1
Roadmap Versions:
New Comment:

-Status: Open
+Status: Feedback
Can you more clearly explain why the preformatted text is wrong (thus ->
patch
to delete), or give us a reason for disabling it? The below test case
isn't specific
enough to justify the changes you propose.


Previous Comments:
------------------------------------------------------------------------

[2011-06-25 19:35:06] ritzmo

Isn't there a better fix than disabling preformatted text, or do I read
the patch wrong?

------------------------------------------------------------------------

[2011-06-23 15:13:11] kenorb2

Added #patch
bug:18625;patch:fix-for-html-preformatting;revision:1308838391;.

------------------------------------------------------------------------

[2011-06-23 15:09:07] kenorb2

Description:
------------
HTML tags are not rendered correctly if are followed by spaces.
Are rendered with some weird character numbers.

Related issue:
http://drupal.org/node/1196580


Test script:
---------------
<pre>Does work!</pre>
<pre>Doesn't work!</pre>
<table>
<tr>
<td>Table doesn't work</td>
<td>Table doesn't work</td>
<td>Table doesn't work</td>
</tr>
<tr>
<td>Table does work</td>
<td>Table does work</td>
<td>Table does work</td>
</tr>
</table>

Expected result:
----------------
Table is rendered correctly.

Actual result:
--------------
Code is rendered to something as below with some weird
numbers:
<pre>Does work!</pre><br />
<pre> 6Doesn't work!7</pre><br />
<table><br />
<pre> 9
10Table doesn't work11
12Table doesn't work13
14Table doesn't work15
16</pre><br />
<tr><br />
<td>Table does work</td><br />
<td>Table does work</td><br />
<td>Table does work</td><br />
</tr><br />
</table>

How this looks like in XDebug:
=> $key = 159 pearwiki_filter/Text/Wiki.php:1081
=> $rule = 'Preformatted' pearwiki_filter/Text/Wiki.php:1082
=> $opts = array ('text' => '
\0311\031\0312\031subject\0313\031\0314\031predicate\031
5\031\0316\031object\0317\031\0318\031\n ...
pearwiki_filter/Text/Wiki.php:1083

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
grouppear-bugs @
categoriesphp
postedJan 24, '12 at 12:09p
activeJan 24, '12 at 12:09p
posts1
users1
websitepear.php.net

1 user in discussion

Daniel Oconnor: 1 post

People

Translate

site design / logo © 2022 Grokbase