mark rendered narrative

This commit is contained in:
Grahame Grieve 2021-08-27 10:38:21 +10:00
parent 3cb384a297
commit 91fad51eec
1 changed files with 1 additions and 0 deletions

View File

@ -114,6 +114,7 @@ public abstract class ResourceRenderer extends DataRenderer {
x.setAttribute("lang", r.getLanguage());
x.setAttribute("xml:lang", r.getLanguage());
}
r.getText().setUserData("renderer.generated", true);
if (!r.hasText() || !r.getText().hasDiv() || r.getText().getDiv().getChildNodes().isEmpty()) {
r.setText(new Narrative());
r.getText().setDiv(x);