summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2017-02-09 10:38:32 +0100
committerUlrich Müller <ulm@gentoo.org>2017-02-09 10:38:32 +0100
commit422fb36b981a1f352369534505340441a73cd62a (patch)
treef59ec77753412b4fa5a3c98adffe810194fe4808 /Makefile
parentMakefile: Use $@ rather than explicit target name. (diff)
downloadpms-422fb36b981a1f352369534505340441a73cd62a.tar.gz
pms-422fb36b981a1f352369534505340441a73cd62a.tar.bz2
pms-422fb36b981a1f352369534505340441a73cd62a.zip
Makefile: Update sed command to remove span spam in tex4ht output.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files 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" >&#x00A0;/{N;N;s/\(&#x00A0;<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