Skip to content

Commit

Permalink
Merge pull request #22 from jamesscottbrown/patch-2
Browse files Browse the repository at this point in the history
Retain paragaph formatting in abstract/description
  • Loading branch information
ahaith committed Nov 1, 2016
2 parents 1e5608d + 8671489 commit ff24f51
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions widget/embed_ox_talks.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ var oxtalks = {
header = $('<h3>' + talk_title + '</h3>');
element.append(header);

description = $('<p>');
description.html(talk.description);
description = $('<div>');
description.html('<p>' + talk.description.replace(/[\n\r]+/g, '&nbsp;</p><p>') + '</p>');
element.append(description);

bullets = $('<ul>');
Expand Down Expand Up @@ -348,4 +348,4 @@ var oxtalks = {
$(selector).fullCalendar(fullCalendarParams);

},
}
}

0 comments on commit ff24f51

Please sign in to comment.