summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2012-07-02 15:40:11 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2012-07-02 15:40:11 +0200
commit3e1ce9c869a7b941ac17ed09a3986502f281e0ff (patch)
treeba85ac356ccaccd20b43e985a41ab81036549309
parent4401f04627e6dd9490621f68328e9938ad676b05 (diff)
downloadbible-fetch-3e1ce9c869a7b941ac17ed09a3986502f281e0ff.tar.gz
bible-fetch-3e1ce9c869a7b941ac17ed09a3986502f281e0ff.tar.bz2
bible-fetch-3e1ce9c869a7b941ac17ed09a3986502f281e0ff.zip
convert.sed: Reduce html5 fixes to a single substitution
-rwxr-xr-xconvert.sed11
1 files changed, 3 insertions, 8 deletions
diff --git a/convert.sed b/convert.sed
index 2449d1f..797abb6 100755
--- a/convert.sed
+++ b/convert.sed
@@ -1,14 +1,9 @@
#!/bin/sed -f
-/data-href/s/&/&amp;/g
-
# xsltproc --html doesnt understand html5
-s/section/div/g
-s/header/h1/g
-s/<nav/<div/g
-s:</nav:</div:g
-s/footer/div/g
-s/article/div/g
+s:\(</*\)\(section\|header\|nav\|footer\|article\):\1div:g
+
+/data-href/s/&/&amp;/g
# Fix incorrect < and > inside p tags, that is by allowing only
# known tag be surrounded by < and >.