diff options
-rw-r--r-- | src/main/webapp/javascripts/fiddle_backbone/templates/queryMarkdownOutput.html | 2 | ||||
-rw-r--r-- | src/main/webapp/javascripts/libs/handlebarsHelpers/divider_display.js | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/main/webapp/javascripts/fiddle_backbone/templates/queryMarkdownOutput.html b/src/main/webapp/javascripts/fiddle_backbone/templates/queryMarkdownOutput.html index 4ad1daa..4962677 100644 --- a/src/main/webapp/javascripts/fiddle_backbone/templates/queryMarkdownOutput.html +++ b/src/main/webapp/javascripts/fiddle_backbone/templates/queryMarkdownOutput.html @@ -12,7 +12,7 @@ Markdown is useful for posting on sites like <a href="http://stackoverflow.com" **[Results][{{add index 2}}]**: {{#if this.RESULTS.DATA.length}} |{{#each_simple_value_with_index this.RESULTS.COLUMNS}} {{result_display_padded ../this/RESULTS/COLUMNWIDTHS}} |{{/each_simple_value_with_index}} - -{{#each_simple_value_with_index this.RESULTS.COLUMNS}}-{{divider_display ../this/RESULTS/COLUMNWIDTHS}}--{{/each_simple_value_with_index}}{{#each this.RESULTS.DATA}} + |{{#each_simple_value_with_index this.RESULTS.COLUMNS}}{{divider_display ../this/RESULTS/COLUMNWIDTHS}}{{/each_simple_value_with_index}}{{#each this.RESULTS.DATA}} |{{#each_simple_value_with_index this}} {{result_display_padded ../../this/RESULTS/COLUMNWIDTHS}} |{{/each_simple_value_with_index}}{{/each}} {{/if}} {{/each_with_index}} diff --git a/src/main/webapp/javascripts/libs/handlebarsHelpers/divider_display.js b/src/main/webapp/javascripts/libs/handlebarsHelpers/divider_display.js index 126e459..abbc9e1 100644 --- a/src/main/webapp/javascripts/libs/handlebarsHelpers/divider_display.js +++ b/src/main/webapp/javascripts/libs/handlebarsHelpers/divider_display.js @@ -4,9 +4,9 @@ define(["Handlebars"], function (Handlebars) { Handlebars.registerHelper("divider_display", function(colWidths) { var padding = []; - padding.length = colWidths[this.index] + 1; + padding.length = colWidths[this.index] + 3; - return padding.join('-'); + return padding.join('-') + "|"; }); |