Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 374 by jgspratt: Blank lines are not properly ignored
http://code.google.com/p/robotframework/issues/detail?id=374
(Robot Framework 2.1, Python 2.6)
According to the user guide (2.1.4 @
http://robotframework.googlecode.com/svn/tags/robotframework-2.1/doc/userguide/RobotFrameworkUserGuide.html#rules-for-parsing-the-data
):
"All empty rows [are ignored], which means these kinds of rows can be used
to make the tables more readable"
In the restructured text format, if the first row in a table (after the
headers is blank, pybot responds with the following error message (for
example, if the "Test Cases" table had a first empty row after the headers):
---
[ ERROR ] Test case file '<path_to_data_file>' contains no test cases.
---
(Where <path_to_data_file> is the path to the data file.)
If the fist and last lines in a table are blank, a further error is
generated:
---
<path_to_data_file>:24: (WARNING/2) Blank line required after table.
<path_to_data_file>:42: (ERROR/3) Malformed table.
Column span alignment problem at line offset <offset>.
---
(Where <path_to_data_file> is the path to the data file and <offset> is the
first line with text in the "malformed" table.)
Blank lines should be completely ignored and therefore not cause errors.
The lexer should continue to parse the tables until an end is found or
until the end of the file is reached.
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings