Skip to content

Commit

Permalink
FIX: Reduce whitespace in word lines
Browse files Browse the repository at this point in the history
  • Loading branch information
dwhieb committed Mar 16, 2024
1 parent 588b1ee commit 40d9389
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/words/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@ export default function createWords(words, options) {
const morphemes = createMorphemes(word.analysis, options)
const transcription = createTranscription(word.transcription, options)

html += `<li class=word>
${ transcription }
${ literal }
${ morphemes }
${ glosses }
</li>`
const lines = [transcription, morphemes, glosses, literal]
.filter(Boolean)
.join(``)

html += `<li class=word>${ lines }</li>`

}

Expand Down

0 comments on commit 40d9389

Please sign in to comment.