From 3a0ad9120991222f4ca8107b544f847705ad95de Mon Sep 17 00:00:00 2001 From: Ankit Ahuja Date: Wed, 8 Jun 2011 23:26:12 +0530 Subject: [PATCH] Tweaked the style comment header generated during installation --- stylebot/js/installation.js | 28 ++++++---------------------- 1 file changed, 6 insertions(+), 22 deletions(-) diff --git a/stylebot/js/installation.js b/stylebot/js/installation.js index 8af3c7ae..a8cbb56e 100644 --- a/stylebot/js/installation.js +++ b/stylebot/js/installation.js @@ -88,32 +88,16 @@ function saveStyleFromSocial(installationEvent) { var rules = CSSUtils.getRulesFromParserObject(sheet); // add the meta header - var header = '\ -/**\n\ - Title : -' - + data.title + '\n'; + var header = '/**\n Title: ' + data.title + + '\n URL: http://stylebot.me/styles/' + data.id + + '\n Author: ' + data.author + + '\n Author URL: http://stylebot.me/users/' + data.author; if (data.description) { - header += '\ - Description : -' - + data.description + '\n'; + header += '\n Description: ' + data.description; } - header += '\ - URL : http://stylebot.me/styles/ -' - + data.id + '\n\ - Author : -' - + data.author + '\n\ - Author URL : -' - + 'http://stylebot.me/users/' + data.author + '\n\ -**/\n -' -; + header += '\n**/'; var rulesWithMeta = { 'comment-#0' : { comment: header } };