diff options
author | Ulrich Müller <ulm@gentoo.org> | 2017-02-09 10:38:32 +0100 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2017-02-09 10:38:32 +0100 |
commit | 422fb36b981a1f352369534505340441a73cd62a (patch) | |
tree | f59ec77753412b4fa5a3c98adffe810194fe4808 /Makefile | |
parent | Makefile: Use $@ rather than explicit target name. (diff) | |
download | pms-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-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |