Diff for scripts/shell/docbook/db-html2man between version 1.6 and 1.7
| version 1.6, 2002/09/02 16:15:48 |
version 1.7, 2002/09/02 16:26:35 |
|
|
| #!/usr/bin/awk |
#!/usr/bin/awk |
| |
|
| |
# $Id$ |
| |
|
| function remove_lines(str) |
function remove_lines(str) |
| { |
{ |
| while (getline) { |
while (getline) { |
| Line 67 function handle_table(str) |
|
| Line 69 function handle_table(str) |
|
| for (i = 1; i <= n; i++) { |
for (i = 1; i <= n; i++) { |
| #printf "a[%d] = '%s'\n", i, a[i]; |
#printf "a[%d] = '%s'\n", i, a[i]; |
| if (a[i] ~ /<!-- MAN:/) { |
if (a[i] ~ /<!-- MAN:/) { |
| sub(/<!-- MAN:/, "", a[i]); |
sub(/<!-- MAN:[ \t]\+/, "", a[i]); |
| sub(/[ \t]+$/, "", a[i]); |
sub(/[ \t]+$/, "", a[i]); |
| printf "%s", a[i]; |
printf "%s", a[i]; |
| } |
} |
Platon Group <platon@platon.org> http://platon.org/
|
|