Handle case where Contact.value has extensions instead of a string value

This commit is contained in:
Grahame Grieve 2024-06-01 22:57:13 +10:00
parent e51534030e
commit 674f834f8d
2 changed files with 2 additions and 2 deletions

View File

@ -1483,7 +1483,7 @@ public class DataRenderer extends Renderer implements CodeResolver {
x.addText(displayContactPoint(contact)); x.addText(displayContactPoint(contact));
break; break;
case PHONE: case PHONE:
if (contact.hasValue() && contact.getValue().startsWith("+")) { if (contact.hasPrimitiveValue() && contact.getValue().startsWith("+")) {
x.ah("tel:"+contact.getValue().replace(" ", "")).tx(contact.getValue()); x.ah("tel:"+contact.getValue().replace(" ", "")).tx(contact.getValue());
} else { } else {
x.addText(displayContactPoint(contact)); x.addText(displayContactPoint(contact));

View File

@ -105,7 +105,7 @@ public class ExampleScenarioRenderer extends TerminologyRenderer {
for (ExampleScenarioProcessStepComponent step: process.getStep()) { for (ExampleScenarioProcessStepComponent step: process.getStep()) {
plantUml += toPlantUml(step, stepPrefix(prefix, step, stepCount), scen, actorsActive, actorKeys); plantUml += toPlantUml(step, stepPrefix(prefix, step, stepCount), scen, actorsActive, actorKeys);
if (step.getPause()) if (step.getPause())
plantUml += context.formatPhrase(RenderingContext.EX_SCEN_TIME); plantUml += context.formatPhrase(RenderingContext.EX_SCEN_TIME)+"\n";
stepCount++; stepCount++;
} }