One more test fix

This commit is contained in:
James Agnew 2019-08-29 21:35:07 -04:00
parent 1b1d80b850
commit dbe86c8669
1 changed files with 6 additions and 4 deletions

View File

@ -1464,10 +1464,12 @@ public abstract class BaseHapiFhirDao<T extends IBaseResource> implements IDao,
List<IPrimitiveType<String>> childElements = theContext.newTerser().getAllPopulatedChildElementsOfType(theResource, myStringType); List<IPrimitiveType<String>> childElements = theContext.newTerser().getAllPopulatedChildElementsOfType(theResource, myStringType);
for (@SuppressWarnings("rawtypes") for (@SuppressWarnings("rawtypes")
IPrimitiveType<String> nextType : childElements) { IPrimitiveType<String> nextType : childElements) {
String nextValue = nextType.getValueAsString(); if (myStringType.equals(nextType.getClass())) {
if (isNotBlank(nextValue)) { String nextValue = nextType.getValueAsString();
retVal.append(nextValue.replace("\n", " ").replace("\r", " ")); if (isNotBlank(nextValue)) {
retVal.append("\n"); retVal.append(nextValue.replace("\n", " ").replace("\r", " "));
retVal.append("\n");
}
} }
} }
return retVal.toString(); return retVal.toString();