Skip to content
Snippets Groups Projects
Verified Commit b66c4285 authored by Erick Hitter's avatar Erick Hitter
Browse files

Line

breaks
make
formatting
work
parent cac638f1
No related branches found
No related tags found
No related merge requests found
......@@ -97,10 +97,10 @@ app.post('/post', function(req, res){
// Build forecast into a table
var forecastData = JSON.parse( body );
var forecastBody = "---\n#### **Forecast as of " + forecastData.forecast.txt_forecast.date + '**';
forecastBody += "| Day | Description | High | Low |";
forecastBody += "|:--------------------|:---------------------------------|:-------|:-------|";
forecastBody += "| Monday, Feb. 15 | Cloudy with a chance of flurries | 3 °C | -12 °C |";
var forecastBody = "---\n#### **Forecast as of " + forecastData.forecast.txt_forecast.date + "**\n";
forecastBody += "| Day | Description | High | Low |\n";
forecastBody += "|:--------------------|:---------------------------------|:-------|:-------|\n";
forecastBody += "| Monday, Feb. 15 | Cloudy with a chance of flurries | 3 °C | -12 °C |\n";
forecastBody += '---';
responseBody.attachments[1] = { "text": forecastBody };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment