BEGIN { print "" } /^$/ { if (CheckinList()) next if (++bc >= 2) { print "
" bc = 0 } next } /^\*/ { if (CheckinList()) next printf("\x81\xa1\x81\x40%s
\n", substr($0, 2)) next } /^-/ { if (!inList) { print "
" inList = 0 } if (inNumber) { print "" inNumber = 0 } return 0 } function CheckinCode( s, i, c) { if (inCode) { s = $0 for (i = 1; i <= length(s); i++) { c = substr(s, i, 1) if (c == "&") printf("&") else if (c == "<") printf("<") else if (c == ">") printf(">") else printf("%c", c) } printf("\n"); return 1 } return 0 }