Changeset 40fc49 in indico
- Timestamp:
- 01/31/12 15:36:07 (16 months ago)
- Branches:
- master, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.98b2, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, d9941f8582b36b24821a11ea5ba16fda6a457fb1
- Children:
- d9d4d7
- Parents:
- 025d21
- git-author:
- Pedro Ferreira <jose.pedro.ferreira@…> (01/31/12 15:34:51)
- git-committer:
- Pedro Ferreira <jose.pedro.ferreira@…> (01/31/12 15:36:07)
- File:
-
- 1 edited
-
indico/htdocs/js/indico/Core/Widgets/Inline.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
indico/htdocs/js/indico/Core/Widgets/Inline.js
r842982 r40fc49 1569 1569 _handleDisplayMode: function(value) { 1570 1570 if (value) { 1571 this.comments = Html.span({}, value); 1572 return this.comments; 1571 // start by escaping the input 1572 var dummy = $('<span/>').text(value); 1573 value = dummy.text(); 1574 1575 // now transform double line breaks into paragraphs 1576 value = '<p>' + value.replace('\n\n', '</p><p>') + '</p>'; 1577 return Html.unescaped.span({}, value); 1573 1578 } else { 1574 1579 return; 1575 1580 } 1576 1577 1581 }, 1578 1582
Note: See TracChangeset
for help on using the changeset viewer.
