Skip to content

Commit

Permalink
Add mapping logic for br element
Browse files Browse the repository at this point in the history
  • Loading branch information
morpheus-87 committed Sep 4, 2023
1 parent c18efbe commit 1966dbd
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import de.digitalcollections.model.text.contentblock.BulletList;
import de.digitalcollections.model.text.contentblock.ContentBlock;
import de.digitalcollections.model.text.contentblock.ContentBlockNode;
import de.digitalcollections.model.text.contentblock.HardBreak;
import de.digitalcollections.model.text.contentblock.ListItem;
import de.digitalcollections.model.text.contentblock.Mark;
import de.digitalcollections.model.text.contentblock.Table;
Expand Down Expand Up @@ -51,6 +52,8 @@ public static ContentBlock getContentBlock(Node node) {
contentBlock = new TableHeader();
} else if ("td".equalsIgnoreCase(tagName)) {
contentBlock = new TableCell();
} else if ("br".equalsIgnoreCase(tagName)) {
contentBlock = new HardBreak();
} else if ("a".equalsIgnoreCase(tagName)) {
// TODO only simple plain text links are supported until now; dive into nodes of a-element
// for further linked content
Expand Down

0 comments on commit 1966dbd

Please sign in to comment.