Fixes #4010
authorRadek Czajka <rczajka@rczajka.pl>
Wed, 22 Apr 2020 11:16:32 +0000 (13:16 +0200)
committerRadek Czajka <rczajka@rczajka.pl>
Thu, 10 Sep 2020 12:15:11 +0000 (14:15 +0200)
src/annoy/static/annoy/book_text.js

index bef1f13..bcc46f0 100644 (file)
                 }
                 return inserts.length > 0;
             });
+           /* Special case for short poems. */
+           if (inserts && !counter) {
+               inserts[0].insertAfter($(".paragraph, .stanza").last());
+           }
         };