*** empty log message ***

This commit is contained in:
hyung-hwan 2007-02-03 15:03:05 +00:00
parent ec785daf8d
commit 1294babb4e
2 changed files with 43 additions and 7 deletions

View File

@ -15,3 +15,9 @@ ase/test/lsp -
ase/test/com - ase/test/com -
ase/etc - ase/etc -
ase/doc - ase/doc -
{{{
hello
mr monkey...
#include <stdio.h>
}}}

View File

@ -1,5 +1,8 @@
global header, mode;
BEGIN { BEGIN {
header = 1; header = 1;
mode = 0;
} }
header && /^\.[[:alpha:]]+[[:space:]]/ { header && /^\.[[:alpha:]]+[[:space:]]/ {
@ -12,15 +15,42 @@ header && /^\.[[:alpha:]]+[[:space:]]/ {
header && !/^\.[[:alpha:]]+[[:space:]]/ { header = 0; } header && !/^\.[[:alpha:]]+[[:space:]]/ { header = 0; }
!header { !header {
local text;
if (mode == 0)
{
if (/^== [^=]+ ==$/) if (/^== [^=]+ ==$/)
{ {
print "H2" $0; text=substr($0, 3, length($0)-4);
print "<h2>" text "</h2>";
} }
else if (/^=== [^=]+ ===$/) else if (/^=== [^=]+ ===$/)
{ {
print "H3" $0; text=substr($0, 4, length($0)-6);
print "<h3>" text "</h3>";
}
else if (/^\{\{\{$/)
{
print "<pre>";
mode = 1;
}
else if (/^$/)
{
print "<br>";
}
}
else if (mode == 1)
{
if (/^}}}$/)
{
print "</pre>";
mode = 0;
}
else
{
gsub ("<", "\\&lt;");
gsub (">", "\\&gt;");
print $0;
}
} }
} }