summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2017-05-25 20:46:10 +0200
committerUlrich Müller <ulm@gentoo.org>2017-05-25 20:46:10 +0200
commit6f049fdf1b718d0c65f006e3cc9254ac55bc91c4 (patch)
treee16e489cbb225c86133ae452b3728bb53a973568 /Makefile
parentRearrange front matter. (diff)
downloadpms-6f049fdf1b718d0c65f006e3cc9254ac55bc91c4.tar.gz
pms-6f049fdf1b718d0c65f006e3cc9254ac55bc91c4.tar.bz2
pms-6f049fdf1b718d0c65f006e3cc9254ac55bc91c4.zip
Makefile: Fix sed regexp.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
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" >&#x00A0;/{N;N;s/\(&#x00A0;<a \nhref="[^"]\+">\)\([0-9A-Z.]\+\)[ \n]/\2\1/}' $@
+ LC_ALL=C sed -i -e '/<span class="lotToc" >&#x00A0;/{N;N;s/\(&#x00A0;<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' $@