fix for testing IGs

This commit is contained in:
Grahame Grieve 2023-08-17 21:19:56 +10:00
parent f7c606e88b
commit 87a9a58771
4 changed files with 4 additions and 2 deletions

View File

@ -35,7 +35,7 @@ public class VersionComparisonAnnotation {
public void changed(Base orig) {
assert type == AnotationType.NoChange;
type = AnotationType.Changed;
if (original != null && orig.isPrimitive() && orig.primitiveValue().length() < 120) { // arbitrary, but we don't a whack of markdown
if (orig != null && orig.isPrimitive() && orig.primitiveValue().length() < 120) { // arbitrary, but we don't a whack of markdown
this.original = orig.primitiveValue();
}
}

View File

@ -4257,6 +4257,7 @@ public class StructureDefinitionRenderer extends ResourceRenderer {
bindingDesc = new XhtmlNode(NodeType.Element, "div");
bindingDesc.add(new XhtmlParser().parseFragment(hostMd.processMarkdown("Binding.description", newBinding)));
} else {
StringType oldBinding = compBinding != null && compBinding.hasDescription() ? PublicationHacker.fixBindingDescriptions(context.getContext(), compBinding.getDescriptionElement()) : null;
bindingDesc = compareMarkdown("Binding.description", newBinding, oldBinding, mode);
}

View File

@ -255,6 +255,7 @@ public class RenderingContext {
res.copyButton = copyButton;
res.pkp = pkp;
res.defaultStandardsStatus = defaultStandardsStatus;
res.changeVersion = changeVersion;
res.terminologyServiceOptions = terminologyServiceOptions.copy();
return res;

View File

@ -151,7 +151,7 @@ public class DefinitionNavigator {
if (nameMap.containsKey(path)) {
DefinitionNavigator master = nameMap.get(path);
ElementDefinition cm = master.current();
if (diff && cm.hasSliceName()) {
if (diff) {
// slice name - jumped straight into slicing
children.add(dn);
} else {