Changeset 8 for trunk/spec/preprocess_fo.pl
- Timestamp:
- 05/11/08 17:47:56 (5 months ago)
- Files:
-
- 1 modified
-
trunk/spec/preprocess_fo.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/spec/preprocess_fo.pl
r7 r8 5 5 6 6 my $text = ""; 7 my $in_final_tables = 0; 7 8 while (my $line = <>) { 8 9 # Get rid of the URLs of external links … … 25 26 $line =~ s/<fo:table-row/<fo:table-row keep-together="always"/g; 26 27 # Add margin and p[adding to preview examples. 27 $line =~ s/border-style/margin="2pt" padding="2pt" border-style/ 28 if ($line =~ /fo:block><fo:block wrap-option/); 28 $line =~ s/border-style/margin="2pt" padding="2pt" border-style/ if ($line =~ /fo:block><fo:block wrap-option/); 29 29 # Add margin and padding to syntax examples. 30 $line =~ s/border-style/margin="2pt" padding="2pt" border-style/ 31 if ($line =~ /^<fo:block wrap-option/); 30 $line =~ s/border-style/margin="2pt" padding="2pt" border-style/ if ($line =~ /^<fo:block wrap-option/); 32 31 # Fix the disappearing trademark problem. 33 32 $line =~ s/\(YAML\)/(YAML™)/g; … … 40 39 $line =~ s/key="((?:[^" ]+ )+)[ ]+/key="$1/; 41 40 } 41 # Get rid of the non-ASCII characters. 42 $line =~ s/\302?\240/ /g; # nbsp 43 $line =~ s/\302?\251/©/g; # copyright 44 $line =~ s/\302?\260/°/g; # deg 45 $line =~ s/\302?\267/·/g; # middot 46 $line =~ s/\303?\327/×/g; # times 47 $line =~ s/d[^ ]*t Net/döt Net/g; # ouml 48 49 $in_final_tables++ if $line =~ /10.2.2. Resolution</; 50 $line =~ s/column-number="1"\//column-number="1" column-width="60%"\// if $in_final_tables > 1; 51 $line =~ s/column-number="2"\//column-number="2" column-width="40%"\// if $in_final_tables > 1; 42 52 43 53 print $line;
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)