Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

doc parser doesn't preserve newlines in examples and scenarios #162

Closed
IgorMinar opened this issue Nov 24, 2010 · 1 comment
Closed

doc parser doesn't preserve newlines in examples and scenarios #162

IgorMinar opened this issue Nov 24, 2010 · 1 comment

Comments

@IgorMinar
Copy link
Contributor

if two lines in an scenario code are separated by a just a new line without any space characters, the new line is not preserved in the docs app. If I add an extra space, to before the line break, the blank line is preserved.

Example:
@Scenario
it('should initialize the task list with for tasks', function() {
element('.doc-example ul li a:contains("X"):first').click();
expect(repeater('.doc-example ul li', 'task in tasks').count()).toBe(3);

   element('.doc-example ul li a:contains("X"):last').click();
   expect(repeater('.doc-example ul li', 'task in tasks').count()).toBe(2);

   expect(repeater('.doc-example ul li', 'task in tasks').column('task')).
     toEqual(['Read Documentation', 'Check out demos']);
 });
@mhevery
Copy link
Contributor

mhevery commented Jan 18, 2011

closed by 050e5d7

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants