diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-07-02 15:40:11 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-07-02 15:40:11 +0200 |
commit | 3e1ce9c869a7b941ac17ed09a3986502f281e0ff (patch) | |
tree | ba85ac356ccaccd20b43e985a41ab81036549309 | |
parent | 4401f04627e6dd9490621f68328e9938ad676b05 (diff) | |
download | bible-fetch-3e1ce9c869a7b941ac17ed09a3986502f281e0ff.tar.gz bible-fetch-3e1ce9c869a7b941ac17ed09a3986502f281e0ff.tar.bz2 bible-fetch-3e1ce9c869a7b941ac17ed09a3986502f281e0ff.zip |
convert.sed: Reduce html5 fixes to a single substitution
-rwxr-xr-x | convert.sed | 11 |
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/&/&/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/&/&/g # Fix incorrect < and > inside p tags, that is by allowing only # known tag be surrounded by < and >. |