diff --git a/dreditor.user.js b/dreditor.user.js index cce06be..00fe6ad 100644 --- a/dreditor.user.js +++ b/dreditor.user.js @@ -1539,10 +1539,10 @@ Drupal.behaviors.dreditorIssueSummaryTemplate = function (context) { .click(function () { // Load the issue summary instructions. - $.get('http://drupal.org/node/1326662', function (data) { + $.get('//drupal.org/node/1326662', function (data) { // Retrieve the template. - $templateText = $(data).find('div#summary-template > div > code').text(); + $templateText = $(data).find('#node-1326662 code').text(); // If we are on a node edit page, add an additional header for the // original report. @@ -1552,6 +1552,7 @@ Drupal.behaviors.dreditorIssueSummaryTemplate = function (context) { } // Add some whitespace. + $templateText = $templateText.replace(/<\/em>/g, "\n\n"); $templateText = $templateText.replace(/<\/h3>/g, "\n\n"); // Prepend text to current body.