[pull request] apply normalize_quantity filter on 'quantity' in templates

Issue #1078 resolved