Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Street address empty when using Ezvcard.writeHtml #19

Closed
GoogleCodeExporter opened this issue Mar 21, 2015 · 2 comments
Closed

Street address empty when using Ezvcard.writeHtml #19

GoogleCodeExporter opened this issue Mar 21, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?

VCard vcard = new VCard();

StructuredName name = new StructuredName();
name.setGiven("John");
name.setFamily("Smith");
vcard.setStructuredName(name);
vcard.setGender(Gender.male());

Address address = new Address();
address.addType(AddressType.HOME);
address.setLocality("City");
address.setStreetAddress("1234 Somestreet");

vcard.addAddress(address);

String html = Ezvcard.writeHtml(vcard).go();
System.out.println(html);

What is the expected output?

...
<span class="street-address">1234 Somestreet</span><br />
...

What is the actual output?

...
<span class="street-address"></span><br />
...

What version of ez-vcard are you using?
0.9.5

What version of Java are you using?
1.7.0

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 15 Sep 2014 at 11:25

@GoogleCodeExporter
Copy link
Author

found a fix: change the respective line in ezvcard/io/html/hcard-template.html 
to 

<span class="street-address">${adr.streetAddress}</span><br />

extended address also seems to be missing the ${...} part

Original comment by [email protected] on 16 Sep 2014 at 3:37

@GoogleCodeExporter
Copy link
Author

Thank you for the bug report.  For some reason, those Freemarker template 
variables were being filtered out during the project build process.  Fix will 
be included in the next release.

Fixed in r1053.

Original comment by mike.angstadt on 17 Sep 2014 at 1:36

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant