#013266: fatal error when there is no empty line after a literal block

Description:

I get the following error when there is no empty line after a literal block

ezcDocumentParserException: Parse error: Fatal error: 'Unexpected node: Text line.' in line 3 at position 54. in /Applications/MAMP/htdocs/ezComponents/trunk/Document/src/interfaces/parser.php on line 64

Adding an empty line to the string below fixes the fatal error.


Environment:

Operating System: OS X
PHP Version: 5.2.6
Database and version:
Browser (and version):


Steps to Reproduce:

  $string = <<<EOT
1.  Functions that are given pointers to resources should not free them

    For instance, bla should NOT free to and/or from.
EOT;

- Attachments

No attachments for this issue.


- Comments

issue also seems to be at the end of a list.

#257196 by Lukas Smith on June 29th, 2008 [Permanent Link]

ok lets try this again. the first two throw a parser exception, the last one does not. not sure if this is the behavior mandated in the standard.


  $string = <<<EOT
1.  lets count something

2.  count something with multiple lines
    like so

3.  and with a an ordered list:

    - foobar
    - dasasdasdadassadasdas sadsad asdsad asd asd asdasdsa dasd asdasdasdasdas
      dasdasdasdsdsd

4. more text
EOT;

  $string = <<<EOT
and with a an ordered list:

    - foobar
    - dasasdasdadassadasdas sadsad asdsad asd asd asdasdsa dasd asdasdasdasdas
      dasdasdasdsdsd
EOT;

  $string = <<<EOT
and with a an ordered list::

    - foobar
    - dasasdasdadassadasdas sadsad asdsad asd asd asdasdsa dasd asdasdasdasdas
      dasdasdasdsdsd
EOT;
#257197 by Lukas Smith on June 29th, 2008 [Permanent Link]

Fixed in revision #8521.

#257257 by Kore Nordmann on July 2nd, 2008 [Permanent Link]

- History
Properties
Type Bug
Priority Medium
Component Components » Document
Affects Unknown
Fix Version -
Reporter Lukas Smith
Responsible Kore Nordmann
Status 0 Closed
Resolution Fixed
Created June 29th, 2008
Updated July 2nd, 2008
Resolved July 2nd, 2008
 
Navigation [Permanent Link]
Previous Issue
Back to Issues List
Next Issue: #015537
  Graph shows to small and truncated rotated axis labels