projects
/
~bandali
/
bndl.org
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
7b1ee54
)
txt2pre: use '—' instead of '—' (to fix feed validation)
author
Amin Bandali
<bandali@gnu.org>
Fri, 22 Oct 2021 03:32:38 +0000
(23:32 -0400)
committer
Amin Bandali
<bandali@gnu.org>
Fri, 22 Oct 2021 03:32:38 +0000
(23:32 -0400)
txt2pre
patch
|
blob
|
blame
|
history
diff --git
a/txt2pre
b/txt2pre
index
5bf8811
..
49bd164
100644
(file)
--- a/
txt2pre
+++ b/
txt2pre
@@
-195,7
+195,7
@@
my $txt = do { local $/; <STDIN> };
my $title = html_esc($txt =~ /\A([^\n]+)/);
$title =~ s/^\s+|\s+$//g;
my $title = html_esc($txt =~ /\A([^\n]+)/);
$title =~ s/^\s+|\s+$//g;
-$title .= " &
mdash
; $author" if $title !~ /$author/;
+$title .= " &
#8212
; $author" if $title !~ /$author/;
my ($upd, $pub, $url) = $txt =~ /(.*)\r?\n(.*)\r?\n(.*)\r?\n?\z/;
($upd) = $upd =~ /(?:updated|ویرایش): (.*)/ if $upd;
my ($upd, $pub, $url) = $txt =~ /(.*)\r?\n(.*)\r?\n(.*)\r?\n?\z/;
($upd) = $upd =~ /(?:updated|ویرایش): (.*)/ if $upd;