File: fix.nawk

package info (click to toggle)
xorg-docs 1%3A1.4-4
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 23,532 kB
  • ctags: 444
  • sloc: xml: 4,565; sh: 3,673; makefile: 731; awk: 123; sed: 7
file content (24 lines) | stat: -rw-r--r-- 249 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#! /bin/nawk -f
# $Xorg: fix.nawk,v 1.3 2000/08/17 19:42:50 cpqbld Exp $
#

BEGIN {
	ignore = 1;
}

/FORMFEED\[Page/	{
	sub("FORMFEED", "        ");
	print;
	print "";
	ignore = 1;
	next;
}

$0 == "" {
	if(ignore) next;
}

{
	ignore = 0;
	print;
}