Skip to content

Commit 585e85a

Browse files
committed
LaridianPocketBible: No line breaks in interlinear
1 parent 1bc35b7 commit 585e85a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

biblemulticonverter/src/main/java/biblemulticonverter/format/LaridianPocketBible.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,10 @@ public void visitVerseSeparator() throws RuntimeException {
755755
public void visitLineBreak(ExtendedLineBreakKind kind, int indent) throws RuntimeException {
756756
if (htmlState == null) {
757757
ensureInParagraph();
758-
if (!kind.isSameParagraph() && kind != ExtendedLineBreakKind.TABLE_ROW_NEXT_CELL) {
758+
if (interlinearTypes != null) {
759+
// enforce not using line breaks
760+
sb.append("</p>\n<p>");
761+
} else if (!kind.isSameParagraph() && kind != ExtendedLineBreakKind.TABLE_ROW_NEXT_CELL) {
759762
String align = "";
760763
if (indent == ExtendedLineBreakKind.INDENT_CENTER)
761764
align = " align=\"center\"";
@@ -850,6 +853,7 @@ else if (formatted.startsWith("H"))
850853
@Override
851854
public Visitor<RuntimeException> visitDictionaryEntry(String dictionary, String entry) throws RuntimeException {
852855
ensureInParagraph();
856+
// backport?
853857
String target = System.getProperty("biblemulticonverter.dictionarytarget." + dictionary);
854858
if (target != null) {
855859
sb.append("<a href=\"" + target + entry + "\">");

0 commit comments

Comments
 (0)