From 201f2a98ead96ca22a02015debdbbd9ac5deeb0f Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Wed, 22 Apr 2020 13:16:32 +0200 Subject: [PATCH 1/1] Fixes #4010 --- src/annoy/static/annoy/book_text.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/annoy/static/annoy/book_text.js b/src/annoy/static/annoy/book_text.js index bef1f13d6..bcc46f0ad 100644 --- a/src/annoy/static/annoy/book_text.js +++ b/src/annoy/static/annoy/book_text.js @@ -45,6 +45,10 @@ } return inserts.length > 0; }); + /* Special case for short poems. */ + if (inserts && !counter) { + inserts[0].insertAfter($(".paragraph, .stanza").last()); + } }; -- 2.20.1