File: 01-tidy-anchors.patch

package info (click to toggle)
gitmagic 20120520-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,516 kB
  • sloc: makefile: 88; sh: 38
file content (14 lines) | stat: -rw-r--r-- 562 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Author: Daniel Baumann <daniel@debian.org>
Description: Fixing anchors to be proper html.
Last-Update: 2012-05-20

--- a/Makefile
+++ b/Makefile
@@ -54,6 +54,7 @@ $(foreach l,$(TRANSLATIONS),$(addprefix $(l)/,$(TXTFILES))):
 $(foreach l,$(LANGS),book-$(l)): book-%: book-%.xml
 	xmlto -m custom-html.xsl -o book-$* html book-$*.xml
 	sed -i'' -e 's/xmlns:fo[^ ]*//g' book-$*/*.html
+	sed -i -e 's|<a name="_|<a id="|g' -e 's|8230_and_then_some|and_then_some|g' -e 's|#_|#|g' book-$*/*.html
 	-ls book-$*/*.html | xargs -n 1 tidy -utf8 -m -i -q
 	./makeover $*