- Example within notes are confusing

- Keep the screen content in CDATA to avoid leading newline


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@318169 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Hannes Magnusson 2011-10-17 18:53:37 +00:00
parent c4a3b8382d
commit fbb8a1962d

View file

@ -453,10 +453,11 @@ This should not print a capital 'A': \x41]]>
Unlike heredocs, nowdocs can be used in any static data context. The
typical example is initializing class properties or constants:
</para>
</note>
<example>
<title>Static data example</title>
<programlisting role="php">
<example>
<title>Static data example</title>
<programlisting role="php">
<![CDATA[
<?php
class foo {
@ -466,9 +467,8 @@ EOT;
}
?>
]]>
</programlisting>
</example>
</note>
</programlisting>
</example>
<note>
<para>
@ -689,8 +689,10 @@ echo "{$foo->$baz[1]}\n";
</programlisting>
&example.outputs;
<screen>
<![CDATA[
I am bar.
I am bar.
]]>
</screen>
</informalexample>