*** empty log message ***
This commit is contained in:
		@ -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>
 | 
				
			||||||
 | 
					}}}
 | 
				
			||||||
 | 
				
			|||||||
@ -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 {
 | 
				
			||||||
	if (/^== [^=]+ ==$/)
 | 
						local text;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if (mode == 0)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		print "H2" $0;
 | 
							if (/^== [^=]+ ==$/)
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								text=substr($0, 3, length($0)-4);
 | 
				
			||||||
 | 
								print "<h2>" text "</h2>";
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							else if (/^=== [^=]+ ===$/)
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								text=substr($0, 4, length($0)-6);
 | 
				
			||||||
 | 
								print "<h3>" text "</h3>";
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							else if (/^\{\{\{$/)
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								print "<pre>";
 | 
				
			||||||
 | 
								mode = 1;
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							else if (/^$/)
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								print "<br>";
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	else if (/^=== [^=]+ ===$/)
 | 
						else if (mode == 1)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		print "H3" $0;
 | 
							if (/^}}}$/) 
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								print "</pre>";
 | 
				
			||||||
 | 
								mode = 0;
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							else
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								gsub ("<", "\\<");
 | 
				
			||||||
 | 
								gsub (">", "\\>");
 | 
				
			||||||
 | 
								print $0;
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user