allow links when ok

This commit is contained in:
Grahame Grieve 2020-09-22 02:14:55 +10:00
parent d07966e422
commit a15be7d314
1 changed files with 10 additions and 2 deletions

View File

@ -488,7 +488,11 @@ public class ProfileDrivenRenderer extends ResourceRenderer {
renderAddress(x, (Address) e);
return true;
} else if (e instanceof ContactPoint) {
displayContactPoint(x, (ContactPoint) e);
if (allowLinks) {
renderContactPoint(x, (ContactPoint) e);
} else {
displayContactPoint(x, (ContactPoint) e);
}
return true;
} else if (e instanceof Timing) {
renderTiming(x, (Timing) e);
@ -530,7 +534,11 @@ public class ProfileDrivenRenderer extends ResourceRenderer {
boolean first = true;
for (ContactPoint c : cd.getTelecom()) {
if (first) first = false; else x.tx(",");
displayContactPoint(x, c);
if (allowLinks) {
renderContactPoint(x, c);
} else {
displayContactPoint(x, c);
}
}
return true;
} else if (e instanceof Range) {