From 9ac4da4dcc231395c9ccc64ed6996f4b440533ce Mon Sep 17 00:00:00 2001 From: Jannick Kremer Date: Sun, 30 Jun 2024 15:54:46 +0100 Subject: [PATCH] Change apostrophes in lyrics to typographer's apostrophes --- src/QUMainWindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/QUMainWindow.cpp b/src/QUMainWindow.cpp index d6e7d28..fe7dacb 100644 --- a/src/QUMainWindow.cpp +++ b/src/QUMainWindow.cpp @@ -547,6 +547,7 @@ QString QUMainWindow::cleanLyrics(QString rawLyricsString) { // replace misused accents (´,`) by the correct apostrophe (') rawLyricsString = rawLyricsString.replace("´", "'"); rawLyricsString = rawLyricsString.replace("`", "'"); + rawLyricsString = rawLyricsString.replace("'", "’"); // delete leading and trailing whitespace from each line, change line beginning to uppercase if selected QStringList rawLyricsStringList = rawLyricsString.split(QRegularExpression("\\n"));