You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/usr/bin/awk -f
|
|
{
|
|
if (lastline ~ /^=+$/) {
|
|
tag = tolower($0)
|
|
gsub(/[^A-Za-z]/, "-", tag)
|
|
print $0
|
|
printf("%80s", "*" "luaguide-" tag "*")
|
|
print ""
|
|
}
|
|
else {
|
|
print
|
|
}
|
|
}
|
|
|
|
{ lastline = $0 }
|