commit: 6f049fdf1b718d0c65f006e3cc9254ac55bc91c4
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Thu May 25 18:46:10 2017 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Thu May 25 18:46:10 2017 +0000
URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=6f049fdf
Makefile: Fix sed regexp.
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index a9666dd..74b6439 100644
--- a/Makefile
+++ b/Makefile
@@ -39,7 +39,7 @@ pms.html: $(LATEXFILES) pms.bbl vc.tex
LC_ALL=C sed -i -e '/<?xml\|<meta/s/iso-8859-1/utf-8/' $@
@# work around irregularity in how links to longtables are
@# formatted in the List of Tables
- LC_ALL=C sed -i -e '/<span class="lotToc" > /{N;N;s/\( <a
\nhref="[^"]\+">\)\([0-9A-Z.]\+\)[ \n]/\2\1/}' $@
+ LC_ALL=C sed -i -e '/<span class="lotToc" > /{N;N;s/\( <a
\nhref="[^"]\+">\)\([0-9A-Z.]\+\)[ \n]\+/\2\1/}' $@
@# remove redundant span elements
LC_ALL=C sed -i -e
':x;/<span\(\s\+[^>]*\)\?$$/{N;bx;};:y;s/\(<span\s\+[^>]*>\)\([^<]*\)<\/span>\1/\1\2/;ty'
$@