diff options
author | jakefeasel <jfeasel@gmail.com> | 2013-08-23 20:47:31 -0700 |
---|---|---|
committer | jakefeasel <jfeasel@gmail.com> | 2013-08-23 20:47:31 -0700 |
commit | 4a6f2b44f90b7340b1bc8813ac1c865aa453ece4 (patch) | |
tree | 1dc39f72752fd5aa1e9732f4026c6ab6bfacb75d | |
parent | 1b17e196f2993726e9f031b161844a9213b3a873 (diff) | |
download | sqlfiddle-4a6f2b44f90b7340b1bc8813ac1c865aa453ece4.zip sqlfiddle-4a6f2b44f90b7340b1bc8813ac1c865aa453ece4.tar.gz sqlfiddle-4a6f2b44f90b7340b1bc8813ac1c865aa453ece4.tar.bz2 |
Adjusting markdown output of table data to conform with http://michelf.ca/projects/php-markdown/extra/#table
-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('-') + "|"; }); |