commit: 422fb36b981a1f352369534505340441a73cd62a
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 9 09:38:32 2017 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Thu Feb 9 09:38:32 2017 +0000
URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=422fb36b
Makefile: Update sed command to remove span spam in tex4ht output.
Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index c8a9b75..9ad1c21 100644
--- a/Makefile
+++ b/Makefile
@@ -32,8 +32,8 @@ pms.html: $(LATEXFILES) pms.bbl vc.tex
@# 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/}' $@
- @# fix broken span on title page
- LC_ALL=C sed -i -e '/<\/span><span $$/{N;s/<\/span><span
[^>]*>\(&[a-z]uml;\)/\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'
$@
pms.bbl: pms.bib pms.tex vc.tex eapi-cheatsheet.pdf
latex pms