From 67bd586ecd715d2b36c0018bfa46d88bfe069f95 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Fri, 17 May 2013 23:13:03 -0400 Subject: [PATCH] Added commit_html_* references to commit template, along with classes to support additional styling This allows for simple configuration of the commit template. The intended use is to either use a configuation script to export these values, or set a custom template path and have the commit template set the values before exec'ing or otherwise running the default script. The template also now makes use of HTML5 tags, such as
. --- msgfmt | 2 +- tpl/commit | 36 +++++++++++++++++++++++------------- 2 files changed, 24 insertions(+), 14 deletions(-) diff --git a/msgfmt b/msgfmt index 651348b..87305c8 100755 --- a/msgfmt +++ b/msgfmt @@ -91,7 +91,7 @@ awk -vid="$id" -vurl_root="$url_root" -vcref_errlog="$cref_errlog" ' s#\([^<]\+\).#\3\2#g; # reference definitions (footnotes) - s#\n\[\([0-9]\+\)\]#

&#g; + s#\n\[\([0-9]\+\)\]#

&#g; # references in text (note that references that enclose text as a hyperlink # must not start with a number, otherwise they will be considered to be a diff --git a/tpl/commit b/tpl/commit index ba551d0..f2af52c 100755 --- a/tpl/commit +++ b/tpl/commit @@ -7,27 +7,37 @@ cat < sup { font-size: 0.6em; } :target { background-color: #fce94f; } + p.ref { margin: 0.25em 0em; } + $commit_html_inline_css + $commit_html_head -

$subject

-

$year-$month-$day

+
+
+

$subject

+

$year-$month-$day

+
-
$( cat ) -
-

- (Return to index) -

+ +
EOF