Commit 75504dedd3d309dae9158087731a967ec6725b57
Fixed ticket 44. Raw HTML now maintains original whitespace. Important inside raw <pre> tags.
| |   |
| 169 | 169 | new_blocks.append(block) |
| 170 | 170 | |
| 171 | 171 | else: |
| items.append(block.strip()) |
| items.append(block) |
| 173 | 173 | |
| 174 | 174 | right_tag, data_index = self._get_right_tag(left_tag, block) |
| 175 | 175 | |
| |   |
| <p>Preserve whitespace in raw html</p> |
| <pre> |
| class Foo(): |
| bar = 'bar' |
|
| def baz(self): |
| print self.bar |
| </pre> |
| |   |
| Preserve whitespace in raw html |
|
| <pre> |
| class Foo(): |
| bar = 'bar' |
|
| def baz(self): |
| print self.bar |
| </pre> |