Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/pms:eapi-7 commit in: /
Date: Mon, 10 Apr 2017 18:13:31
Message-Id: 1486633112.422fb36b981a1f352369534505340441a73cd62a.ulm@gentoo
1 commit: 422fb36b981a1f352369534505340441a73cd62a
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 9 09:38:32 2017 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 9 09:38:32 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=422fb36b
7
8 Makefile: Update sed command to remove span spam in tex4ht output.
9
10 Makefile | 4 ++--
11 1 file changed, 2 insertions(+), 2 deletions(-)
12
13 diff --git a/Makefile b/Makefile
14 index c8a9b75..9ad1c21 100644
15 --- a/Makefile
16 +++ b/Makefile
17 @@ -32,8 +32,8 @@ pms.html: $(LATEXFILES) pms.bbl vc.tex
18 @# work around irregularity in how links to longtables are
19 @# formatted in the List of Tables
20 LC_ALL=C sed -i -e '/<span class="lotToc" >&#x00A0;/{N;N;s/\(&#x00A0;<a \nhref="[^"]\+">\)\([0-9A-Z.]\+\)[ \n]/\2\1/}' $@
21 - @# fix broken span on title page
22 - LC_ALL=C sed -i -e '/<\/span><span $$/{N;s/<\/span><span [^>]*>\(&[a-z]uml;\)/\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' $@
25
26 pms.bbl: pms.bib pms.tex vc.tex eapi-cheatsheet.pdf
27 latex pms