diff --git a/src/commands/createTable.js b/src/commands/createTable.js
index 86e24d5..d829a24 100644
--- a/src/commands/createTable.js
+++ b/src/commands/createTable.js
@@ -12,7 +12,7 @@
for (row = 0; row < value.rows; row ++) {
html += '
';
for (col = 0; col < value.cols; col ++) {
- html += " | ";
+ html += "
| ";
}
html += '
';
}
diff --git a/test/editor_commands_test.js b/test/editor_commands_test.js
index 3660dcd..ae476e3 100644
--- a/test/editor_commands_test.js
+++ b/test/editor_commands_test.js
@@ -310,12 +310,12 @@ if (wysihtml5.browser.supported()) {
expectText = '' +
'' +
'' +
- ' | ' +
- ' | ' +
+ '
| ' +
+ '
| ' +
'
' +
'' +
- ' | ' +
- ' | ' +
+ '
| ' +
+ '
| ' +
'
' +
'' +
'
';