Fixed express(1) LF -> CRLF for windows. Closes #875
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 04389fd · Browse files · 1 file·+12 added−12 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
1 file+12 added−12 removed
- other:+12 added−12 removed
Provenance
- Commit
3e6171c- Tree
6e2fd1f- Author
Tj Holowaychuk <tj@vision-media.ca>- Committer
Tj Holowaychuk <tj@vision-media.ca>- Parent
04389fd
1 file changed+12 added−12 removed
modified:bin/express+12 added-12 removed
47 unmodified lines48 , ''49 , 'exports.index = function(req, res){'50 , ' res.render(\'index\', { title: \'Express\' })'51 , '};'52-].join('\n');52+].join('\r\n');53 54 /**55 * Jade layout template.56 */4 unmodified lines61 , ' head'62 , ' title= title'63 , ' link(rel=\'stylesheet\', href=\'/stylesheets/style.css\')'64 , ' body!= body'65-].join('\n');65+].join('\r\n');66 67 /**68 * Jade index template.69 */70 71 var jadeIndex = [72 'h1= title'73 , 'p Welcome to #{title}'74-].join('\n');74+].join('\r\n');75 76 /**77 * EJS layout template.78 */8 unmodified lines87 , ' <body>'88 , ' <%- body %>'89 , ' </body>'90 , '</html>'91-].join('\n');91+].join('\r\n');92 93 /**94 * EJS index template.95 */96 97 var ejsIndex = [98 '<h1><%= title %></h1>'99 , '<p>Welcome to <%= title %></p>'100- ].join('\n');100+ ].join('\r\n');101 102 /**103 * JSHTML layout template.104 */8 unmodified lines113 , ' <body>'114 , ' @write(body)'115 , ' </body>'116 , '</html>'117-].join('\n');117+].join('\r\n');118 119 /**120 * JSHTML index template.121 */122 123 var jshtmlIndex = [124 '<h1>@write(title)</h1>'125 , '<p>Welcome to @write(title)</p>'126- ].join('\n');126+ ].join('\r\n');127 128 /**129 * Default css template.130 */6 unmodified lines137 , ''138 , 'a {'139 , ' color: #00B7FF;'140 , '}'141-].join('\n');141+].join('\r\n');142 143 /**144 * Default less template.145 */6 unmodified lines152 , ''153 , 'a {'154 , ' color: #00B7FF;'155 , '}'156-].join('\n');156+].join('\r\n');157 158 /**159 * Default stylus template.160 */3 unmodified lines164 , ' padding: 50px'165 , ' font: 14px "Lucida Grande", Helvetica, Arial, sans-serif'166 , 'a'167 , ' color: #00B7FF'168-].join('\n');168+].join('\r\n');169 170 /**171 * App template.172 */33 unmodified lines206 , 'http.createServer(app).listen(3000);'207 , ''208 , 'console.log("Express server listening for connections");'209 , ''210-].join('\n');210+].join('\r\n');211 212 // Generate application213 214 (function createApplication(path) {66 unmodified lines281 282 // CSS Engine support283 switch (program.css) {284 case 'stylus':285- app = app.replace('{css}', '\n app.use(require(\'stylus\').middleware({ src: __dirname + \'/public\' }));');285+ app = app.replace('{css}', '\r\n app.use(require(\'stylus\').middleware({ src: __dirname + \'/public\' }));');286 break;287 default:288 app = app.replace('{css}', '');289 }78 unmodified lines