diff --git a/src/LyricsPane.css b/src/LyricsPane.css index c77d334..41e55d5 100644 --- a/src/LyricsPane.css +++ b/src/LyricsPane.css @@ -15,3 +15,7 @@ textarea { min-height: 25vh; column-width: 15em; } + +.line { + min-height: .6em; +} diff --git a/src/LyricsPane.js b/src/LyricsPane.js index 9fec8ca..ad8ddc2 100644 --- a/src/LyricsPane.js +++ b/src/LyricsPane.js @@ -25,7 +25,7 @@ class LyricsPane extends Component { x.push(word); x.push(" "); } - return
{x.slice(0,-1)}
; + return
{x.slice(0,-1)}
; } componentWillUnmount() { diff --git a/src/verse.js b/src/verse.js index b1f538b..171a67e 100644 --- a/src/verse.js +++ b/src/verse.js @@ -151,7 +151,7 @@ class Verse { var last_word; var i = 0; var lala; - for (const line of text.split(/[\n\r]+/)) { + for (const line of text.split(/\n\r|\r\n|\n|\r/)) { for (const word of line.trim().split(/\s+/)) { if (!word) { continue;