From 422fb36b981a1f352369534505340441a73cd62a Mon Sep 17 00:00:00 2001 From: Ulrich Müller Date: Thu, 9 Feb 2017 10:38:32 +0100 Subject: Makefile: Update sed command to remove span spam in tex4ht output. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile') 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 '/ /{N;N;s/\( \)\([0-9A-Z.]\+\)[ \n]/\2\1/}' $@ - @# fix broken span on title page - LC_ALL=C sed -i -e '/<\/span>]*>\(&[a-z]uml;\)/\1/}' $@ + @# remove redundant span elements + LC_ALL=C sed -i -e ':x;/]*\)\?$$/{N;bx;};:y;s/\(]*>\)\([^<]*\)<\/span>\1/\1\2/;ty' $@ pms.bbl: pms.bib pms.tex vc.tex eapi-cheatsheet.pdf latex pms -- cgit v1.2.3-65-gdbad