morpheus-site

morpheus.2f30.org website
git clone git://git.2f30.org/morpheus-site
Log | Files | Refs | README | LICENSE

commit a6b652c8cb43de366300bbcf3c004278bcea8a8e
parent a2cc7c5e5a5cd3f1e2b2d3727b7f07cee3b0872e
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sun,  2 Mar 2014 12:12:04 +0100

remove code_highlight helper function

Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>

Diffstat:
Mgenerate.sh | 7-------
1 file changed, 0 insertions(+), 7 deletions(-)

diff --git a/generate.sh b/generate.sh @@ -48,13 +48,6 @@ makeid() { -e 's@[-]*$@@g' -e 's@^[-]*@@g' } -# escape some HTML entities, prefix code with linenumbers. -code_highlight() { - printf '%s' '<pre><code>' - sed -e 's@&@\&amp;@g' -e 's@>@\&gt;@g' -e 's@<@\&lt;@g' | nl -w 4 -s ' ' - printf '%s' '</code></pre>' -} - pageheader() { # prefix page title with site title, make sure its neatly formatted. if [ "${title}" = "" ]; then