use spaceless - https://docs.djangoproject.com/en/dev/ref/templates/builtins/#spaceless