BEGIN { # printf("\n"); htmlname=""} /^[=]+$/&& length($0)==length(save){ if (htmlname==""){ htmlname=" "} ; printf("",save) printf("
\n

%s

\n",save,save); save="";$0=""}; /^[-]+$/&& length($0)==length(save){ if (htmlname==""){ htmlname=" "} ; printf("",save) printf("
\n

%s

\n",save,save); save="";$0=""}; /^u/ {print save ;print "
" ; save=$0} /^@/ {print save ;print "
" ; save=$0} /^$/ {print save;save="

"} !( /^u/ || /^@/ || (/^[-=]+$/ && length($0)==length(save) ) ) {print save ;save=$0} END {print $0; #print"\n\n" }