- Fixed substitution in Awk script: we were (erroneusly) stripping 'g'
characters. - Updated template and C header which results after running the script.pull/4/head
parent
003e07cd34
commit
059d4a8811
|
@ -28,7 +28,7 @@ BEGIN {
|
||||||
{
|
{
|
||||||
if (!varname) next;
|
if (!varname) next;
|
||||||
# Order matters
|
# Order matters
|
||||||
gsub(/[\t\v\n\r\f\g]+/, "");
|
gsub(/[\t\v\n\r\f]+/, "");
|
||||||
gsub(/\\/, "\\\\");
|
gsub(/\\/, "\\\\");
|
||||||
gsub(/"/, "\\\"");
|
gsub(/"/, "\\\"");
|
||||||
print "\"" $0 "\""
|
print "\"" $0 "\""
|
||||||
|
|
25
template.h
25
template.h
|
@ -1,24 +1,23 @@
|
||||||
/* Automagically generated, do not edit! */
|
/* Automagically generated, do not edit! */
|
||||||
static const u_char t01_head1[] = ""
|
static const u_char t01_head1[] = ""
|
||||||
"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\""
|
"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">"
|
||||||
"\"http://www.w3.or/TR/xhtml1/DTD/xhtml1-strict.dtd\">"
|
"<html xmlns=\"http://www.w3.org/1999/xhtml\">"
|
||||||
"<html xmlns=\"http://www.w3.or/1999/xhtml\">"
|
|
||||||
"<head>"
|
"<head>"
|
||||||
"<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\"/>"
|
"<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\"/>"
|
||||||
"<style type=\"text/css\">"
|
"<style type=\"text/css\">"
|
||||||
"body,html {"
|
"body,html {"
|
||||||
"backround:#fff;"
|
"background:#fff;"
|
||||||
"}"
|
"}"
|
||||||
"tr.o {"
|
"tr.o {"
|
||||||
"backround:#f4f4f4;"
|
"background:#f4f4f4;"
|
||||||
"}"
|
"}"
|
||||||
"th,td {"
|
"th,td {"
|
||||||
"paddin:0.1em 0.5em;"
|
"padding:0.1em 0.5em;"
|
||||||
"}"
|
"}"
|
||||||
"th {"
|
"th {"
|
||||||
"text-alin:left;"
|
"text-align:left;"
|
||||||
"font-weiht:bold;"
|
"font-weight:bold;"
|
||||||
"backround:#eee;"
|
"background:#eee;"
|
||||||
"border-bottom:1px solid #aaa;"
|
"border-bottom:1px solid #aaa;"
|
||||||
"}"
|
"}"
|
||||||
"#list {"
|
"#list {"
|
||||||
|
@ -46,12 +45,12 @@ static const u_char t04_body2[] = ""
|
||||||
"</h1>"
|
"</h1>"
|
||||||
;
|
;
|
||||||
static const u_char t05_list1[] = ""
|
static const u_char t05_list1[] = ""
|
||||||
"<table id=\"list\" cellpaddin=\"0.1em\" cellspacin=\"0\">"
|
"<table id=\"list\" cellpadding=\"0.1em\" cellspacing=\"0\">"
|
||||||
"<colroup>"
|
"<colgroup>"
|
||||||
"<col width=\"55%\"/>"
|
"<col width=\"55%\"/>"
|
||||||
"<col width=\"20%\"/>"
|
"<col width=\"20%\"/>"
|
||||||
"<col width=\"25%\"/>"
|
"<col width=\"25%\"/>"
|
||||||
"</colroup>"
|
"</colgroup>"
|
||||||
"<thead>"
|
"<thead>"
|
||||||
"<tr>"
|
"<tr>"
|
||||||
"<th>File Name</th>"
|
"<th>File Name</th>"
|
||||||
|
@ -61,7 +60,7 @@ static const u_char t05_list1[] = ""
|
||||||
"</thead>"
|
"</thead>"
|
||||||
"<tbody>"
|
"<tbody>"
|
||||||
"<tr class=\"e\">"
|
"<tr class=\"e\">"
|
||||||
"<td><a href=\"../\">Parent Directory</a></td>"
|
"<td><a href=\"../\">Parent directory/</a></td>"
|
||||||
"<td>-</td>"
|
"<td>-</td>"
|
||||||
"<td>-</td>"
|
"<td>-</td>"
|
||||||
"</tr>"
|
"</tr>"
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
<!-- var t01_head1 -->
|
<!-- var t01_head1 -->
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
|
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
|
||||||
|
@ -60,7 +59,7 @@
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr class="e">
|
<tr class="e">
|
||||||
<td><a href="../">Parent Directory</a></td>
|
<td><a href="../">Parent directory/</a></td>
|
||||||
<td>-</td>
|
<td>-</td>
|
||||||
<td>-</td>
|
<td>-</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
Loading…
Reference in New Issue