From: Amin Bandali Date: Fri, 22 Oct 2021 03:32:38 +0000 (-0400) Subject: txt2pre: use '—' instead of '—' (to fix feed validation) X-Git-Url: https://git.shemshak.org/gitweb.cgi/~bandali/bndl.org/commitdiff_plain/d29d6cb99e1596a4ebe45f70b157e9ea0b7c3461?hp=7b1ee54e69833538988b5a2ab58ab0bb34706b64 txt2pre: use '—' instead of '—' (to fix feed validation) --- diff --git a/txt2pre b/txt2pre index 5bf8811..49bd164 100644 --- a/txt2pre +++ b/txt2pre @@ -195,7 +195,7 @@ my $txt = do { local $/; }; my $title = html_esc($txt =~ /\A([^\n]+)/); $title =~ s/^\s+|\s+$//g; -$title .= " — $author" if $title !~ /$author/; +$title .= " — $author" if $title !~ /$author/; my ($upd, $pub, $url) = $txt =~ /(.*)\r?\n(.*)\r?\n(.*)\r?\n?\z/; ($upd) = $upd =~ /(?:updated|ویرایش): (.*)/ if $upd;