Allow type writer mode in description text block

This commit is contained in:
Willem Cazander 2025-01-19 18:15:18 +01:00
parent 373174a58d
commit 34838eaf04

View file

@ -227,16 +227,11 @@ public class ApiDocGenerator implements ApiDocContentPrinter {
nodeWriter.writeNodeContent(event); nodeWriter.writeNodeContent(event);
writer.printTagEnd(Tag.div); writer.printTagEnd(Tag.div);
if (i+1<bodyWriterDescriptionLinks.size()) { if (i+1<bodyWriterDescriptionLinks.size()) {
writer.printTagStart(Tag.div, ApiDocContentCss.description); writer.printTagStartEnd(Tag.br);
writer.printCharacters("&nbsp;");
writer.printTagEnd(Tag.div);
} }
} }
writer.printTagStartEnd(Tag.hr); writer.printTagStartEnd(Tag.hr);
writer.printTagStart(Tag.div, ApiDocContentCss.description); writer.printTagStartEnd(Tag.br);
writer.printCharacters("&nbsp;");
writer.printTagEnd(Tag.div);
//writer.printTagStartEnd(Tag.br); // mmm
} }
if (bodyWriterDescriptionNode.isEmpty()) { if (bodyWriterDescriptionNode.isEmpty()) {
writer.printTagStart(Tag.div, ApiDocContentCss.description); writer.printTagStart(Tag.div, ApiDocContentCss.description);
@ -249,9 +244,7 @@ public class ApiDocGenerator implements ApiDocContentPrinter {
nodeWriter.writeNodeContent(event); nodeWriter.writeNodeContent(event);
writer.printTagEnd(Tag.div); writer.printTagEnd(Tag.div);
if (i+1<bodyWriterDescriptionNode.size()) { if (i+1<bodyWriterDescriptionNode.size()) {
writer.printTagStart(Tag.div, ApiDocContentCss.description); writer.printTagStartEnd(Tag.br);
writer.printCharacters("&nbsp;");
writer.printTagEnd(Tag.div);
} }
} }
writer.docPageBlockEnd(); writer.docPageBlockEnd();