| 968 | | |
| | 968 | |
| | 969 | # WHITESPACE TESTING |
| | 970 | # Tags on their own line should collapse the newline before them |
| | 971 | 'templatetag-whitespace01': ('\n {% templatetag openblock %}\n', {}, '{%\n'), |
| | 972 | # Tags that start on a newline, but have content thereafter, should not collapse the newline before or after them. |
| | 973 | 'templatetag-whitespace02': ('\n {% templatetag openblock %} String', {}, '\n {% String'), |
| | 974 | 'templatetag-whitespace03': ('\n {% templatetag openblock %} String \n', {}, '\n {% String \n'), |
| | 975 | 'templatetag-whitespace04': ('\n {% templatetag openbrace %}\nString\n{% templatetag closebrace %}\n', {}, '{\nString}\n'), |
| | 976 | 'templatetag-whitespace05': ('\n {% templatetag openbrace %}String{% templatetag closebrace %}\n', {}, '\n {String}\n'), |
| | 977 | 'templatetag-whitespace06': ('\n {% templatetag openbrace %}String{% templatetag closebrace %}', {}, '\n {String}'), |
| | 978 | 'templatetag-whitespace07': (' {% templatetag openbrace %}String{% templatetag closebrace %}', {}, ' {String}'), |
| | 979 | |