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