- 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
Adrian Perez 2007-08-24 18:10:11 +02:00
parent 003e07cd34
commit 059d4a8811
3 changed files with 15 additions and 17 deletions

View File

@ -28,7 +28,7 @@ BEGIN {
{
if (!varname) next;
# Order matters
gsub(/[\t\v\n\r\f\g]+/, "");
gsub(/[\t\v\n\r\f]+/, "");
gsub(/\\/, "\\\\");
gsub(/"/, "\\\"");
print "\"" $0 "\""

View File

@ -1,24 +1,23 @@
/* Automagically generated, do not edit! */
static const u_char t01_head1[] = ""
"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\""
"\"http://www.w3.or/TR/xhtml1/DTD/xhtml1-strict.dtd\">"
"<html xmlns=\"http://www.w3.or/1999/xhtml\">"
"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">"
"<html xmlns=\"http://www.w3.org/1999/xhtml\">"
"<head>"
"<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\"/>"
"<style type=\"text/css\">"
"body,html {"
"backround:#fff;"
"background:#fff;"
"}"
"tr.o {"
"backround:#f4f4f4;"
"background:#f4f4f4;"
"}"
"th,td {"
"paddin:0.1em 0.5em;"
"padding:0.1em 0.5em;"
"}"
"th {"
"text-alin:left;"
"font-weiht:bold;"
"backround:#eee;"
"text-align:left;"
"font-weight:bold;"
"background:#eee;"
"border-bottom:1px solid #aaa;"
"}"
"#list {"
@ -46,12 +45,12 @@ static const u_char t04_body2[] = ""
"</h1>"
;
static const u_char t05_list1[] = ""
"<table id=\"list\" cellpaddin=\"0.1em\" cellspacin=\"0\">"
"<colroup>"
"<table id=\"list\" cellpadding=\"0.1em\" cellspacing=\"0\">"
"<colgroup>"
"<col width=\"55%\"/>"
"<col width=\"20%\"/>"
"<col width=\"25%\"/>"
"</colroup>"
"</colgroup>"
"<thead>"
"<tr>"
"<th>File Name</th>"
@ -61,7 +60,7 @@ static const u_char t05_list1[] = ""
"</thead>"
"<tbody>"
"<tr class=\"e\">"
"<td><a href=\"../\">Parent Directory</a></td>"
"<td><a href=\"../\">Parent directory/</a></td>"
"<td>-</td>"
"<td>-</td>"
"</tr>"

View File

@ -1,6 +1,5 @@
<!-- var t01_head1 -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
@ -60,7 +59,7 @@
</thead>
<tbody>
<tr class="e">
<td><a href="../">Parent Directory</a></td>
<td><a href="../">Parent directory/</a></td>
<td>-</td>
<td>-</td>
</tr>