1 |
Account for slightly different whitespace in the output of newer |
2 |
versions, the possibility of tables in appendices, and the silly |
3 |
locale-dependent behaviour of sed. |
4 |
--- |
5 |
Makefile | 6 +++--- |
6 |
1 files changed, 3 insertions(+), 3 deletions(-) |
7 |
|
8 |
diff --git a/Makefile b/Makefile |
9 |
index 27d58c1..a9f1108 100644 |
10 |
--- a/Makefile |
11 |
+++ b/Makefile |
12 |
@@ -21,12 +21,12 @@ pms.html: $(SOURCEFILES) pms.bbl |
13 |
xhlatex pms |
14 |
@# work around irregularity in how links to longtables are |
15 |
@# formatted in the List of Tables |
16 |
- sed -i -e '/<span class="lotToc" > /{N;N;s/\( <a \nhref="[^"]\+">\)\([0-9.]\+\)\n/\2\1/}' pms.html |
17 |
+ LC_ALL=C sed -i -e '/<span class="lotToc" > /{N;N;s/\( <a \nhref="[^"]\+">\)\([0-9A-Z.]\+\)[ \n]/\2\1/}' pms.html |
18 |
@# indent algorithms properly, and avoid adding extra vertical |
19 |
@# space in Konqueror |
20 |
- sed -i -e 's/span style="width:/span style="display:-moz-inline-box;display:inline-block;height:1px;width:/' pms.html |
21 |
+ LC_ALL=C sed -i -e 's/span style="width:/span style="display:-moz-inline-box;display:inline-block;height:1px;width:/' pms.html |
22 |
@# align algorithm line numbers properly |
23 |
- sed -i -e '/<span class="ALCitem">/{N;s/\n\(class="[^"]\+">\)\([0-9]:\)<\/span>/\1\ \2/}' pms.html |
24 |
+ LC_ALL=C sed -i -e '/<span class="ALCitem">/{N;s/\n\(class="[^"]\+">\)\([0-9]:\)<\/span>/\1\ \2/}' pms.html |
25 |
|
26 |
pms.bbl: pms.bib pms.tex vc.tex eapi-cheatsheet.pdf |
27 |
latex pms |
28 |
-- |
29 |
1.6.2.3 |