#1 It looks like this bug has been since at least all of VW 4.x. Specifically, when using the VW TABLE syntax, if the last cell in the table ends with a line skip, but no trailing row start, before the closing tag, the HTML tag for the last cell is not closed properly. Browsers may handle this differently between vendors and from browser version to browser version, but I believe the previous behavior was that a closing HTML table tag tended to assume the closure of all tags within the table. Apparently that isn't the case anymore in current Chrome and the table explodes.
In
src/addons/vw/vw/_core/model/parser/handle/table/vw.php, find:
Code:
public function close_tr()
{
AFTER it, add:
#2 It is normal behavior for a BR to appear after a DIV if there is more than one line break after the tag, if there are other BB-Codes in between the closing DIV and the line break (such as a COMMENT), or if the DIV is inside a TEMPLATE and the line break is actually after/outside the TEMPLATE. DIV is only designed to strip one line break.
I'm not sure if you did so for readability, but a lot of extra line breaks are added in the example templates you posted on the demo. Many of these line breaks are rendered, as expected. If you need your IF statements, TEMPLATE calls, other tags etc on separate lines for readability, you should always encapsulate the extra whitespace with COMMENT to prevent that whitespace from rendering. So at first glance, I don't see any obvious unexpected whitespace based on what you posted.