In a web2py application I generate .vcf and .ics files using web2py's
templating features. The problem is that all the code in {{}} results in
empty lines, which is no problem on my Mac, but Google doesn't allow empty
lines. For example, this:
{{response.headers['Content-Disposition'] = 'attachment;filename=%s.vcf' %
IS_SLUG()(organization.name)[0]}}BEGIN:VCARD
VERSION:4.0
{{if organization:}}
FN: {{=organization.name}}
ORG: {{=organization.name}}
{{pass}}
{{if address:}}
ADR;
... results in:
BEGIN:VCARD
VERSION:4.0
FN: Health Center Amsterdam
ORG: Health Center Amsterdam
ADR;
... and Google only allows:
BEGIN:VCARD
VERSION:4.0
FN: Health Center Amsterdam
ORG: Health Center Amsterdam
ADR;
Is there a way to solve this problem?
Kind regards,
Annet/