madskristensen/zencoding — pull request #38 by am11 (2014-03-08 15:47:08+00:00)
Title: Lorem: Rendering issue fixed. (#37)

Fixes #37.

Now the text nodes would behave the same way as the other inline controls.

For instance:

```html
div>lorem+{more custom text}
```

would expand as:

```html

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.
more custom text

```
Similarly, multiple lorem controls would get the linebreak:

```html
div>lorem+lorem+lorem
```

would expand as:

```html

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.
Placerat suscipit, orci nisl iaculis eros, a tincidunt nisi odio eget lorem nulla condimentum tempor mattis ut vitae feugiat augue cras ut metus a risus iaculis scelerisque eu ac ante.
Fusce non varius purus aenean nec magna felis fusce vestibulum velit mollis odio sollicitudin lacinia aliquam posuere, sapien elementum lobortis tincidunt, turpis dui ornare nisl, sollicitudin interdum turpis nunc eget.

```

This is different from saying `div>lorem*3`; in which case we get same string three times (generate once, then multiply stamping).

For single nodes, it won't expand:

`p>lorem`, would render

```html

Tincidunt integer eu augue augue nunc elit dolor, luctus placerat scelerisque euismod, iaculis eu lacus nunc mi elit, vehicula ut laoreet ac, aliquam sit amet justo nunc tempor, metus vel.

```