diff --git a/src/cli/out.js b/src/cli/out.js index d0577ce..c271bb2 100644 --- a/src/cli/out.js +++ b/src/cli/out.js @@ -136,13 +136,10 @@ Output routines for HackMyResume. HANDLEBARS.registerHelper( require('../helpers/console-helpers') ); var template = HANDLEBARS.compile(rawTpl, { strict: false, assumeObjects: false }); var tot = 0; - info.keywords.forEach(function(g) { - tot += g.count; - }); + info.keywords.forEach(function(g) { tot += g.count; }); info.keywords.totalKeywords = tot; var output = template( info ); - - this.log(chalk.cyan(output)); + this.log( chalk.cyan(output) ); break; case HME.beforeConvert: diff --git a/src/renderers/jrs-generator.js b/src/renderers/jrs-generator.js index 86bd4fa..b506f53 100644 --- a/src/renderers/jrs-generator.js +++ b/src/renderers/jrs-generator.js @@ -33,18 +33,6 @@ Definition of the JRSGenerator class. generate: function( json, jst, format, cssInfo, opts, theme ) { - // JSON Resume themes don't have a specific structure, so the safest thing - // to do is copy all files from source to dest. - // var COPY = require('copy'); - // var globs = [ '*.css', '*.js', '*.png', '*.jpg', '*.gif', '*.bmp' ]; - // COPY.sync( globs , outFolder, { - // cwd: theme.folder, nodir: true, - // ignore: ['node_modules/','node_modules/**'] - // // rewrite: function(p1, p2) { - // // return PATH.join(p2, p1); - // // } - // }); - // Disable JRS theme chatter (console.log, console.error, etc.) var off = ['log', 'error', 'dir'], org = off.map(function(c){ var ret = console[c]; console[c] = function(){}; return ret; @@ -68,6 +56,7 @@ Definition of the JRSGenerator class. }; + function MDIN(txt) { // TODO: Move this return MD(txt || '' ).replace(/^\s*
|<\/p>\s*$/gi, ''); }