Ticket #4658: 4658.diff
File 4658.diff, 661 bytes (added by , 17 years ago) |
---|
-
docs/templates.txt
1058 1058 linebreaks 1059 1059 ~~~~~~~~~~ 1060 1060 1061 Converts newlines into ``< p>`` and ``<br />`` tags.1061 Converts newlines into ``<br />`` tags and consecutive newlines into ``<p>`` tags. 1062 1062 1063 For example, with the following string stored in the context variable ``text``:: 1064 1065 This is 1066 paragraph one. 1067 1068 This is 1069 paragraph two. 1070 1071 ``{{ text|linebreaks }}`` would become:: 1072 1073 <p>This is<br />paragraph one.</p> 1074 1075 <p>This is<br />paragraph two.</p> 1076 1063 1077 linebreaksbr 1064 1078 ~~~~~~~~~~~~ 1065 1079