Document rendering fixes - subject and section

This commit is contained in:
Grahame Grieve 2024-07-30 15:43:32 +08:00
parent 94fac777aa
commit 2ebcf267ec
1 changed files with 4 additions and 1 deletions

View File

@ -182,6 +182,8 @@ public class BundleRenderer extends ResourceRenderer {
} else {
RendererFactory.factory(subject, context).buildNarrative(status, sec, subject);
}
} else {
sec.para().b().tx("Unable to resolve subject '"+displayReference(comp.child("subject"))+"'");
}
x.hr();
sec = docSection(x, "Document Content");
@ -212,7 +214,8 @@ public class BundleRenderer extends ResourceRenderer {
}
if (section.has("text")) {
ResourceWrapper narrative = section.child("text");
x.addChildren(narrative.getXhtml());
ResourceWrapper xh = narrative.child("div");
x.addChildren(xh.getXhtml());
}
if (section.has("section")) {
List<ResourceWrapper> sections = section.children("section");