File: addstyle.pl

package info (click to toggle)
swh-plugins 0.4.17-3
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 3,264 kB
  • sloc: ansic: 23,551; xml: 12,633; perl: 1,114; sh: 964; makefile: 218
file content (43 lines) | stat: -rwxr-xr-x 459 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/perl -w

$style = <<EOB;
<style>
  BODY {
    font-family: sans-serif;
    font-size: 10pt;
    color: black;
    background: white;
  }

  H1 {
    font-size: 16pt;
  }

  H2 {
    padding-top: 10pt;
    font-size: 14pt;
  }

  H3 {
    padding-top: 10pt;
    font-size: 12pt;
  }

  P {
    font-size: 10pt;
  }

  TD {
    font-size: 10pt;
  }

  A {
    text-decoration: none;
  }
</style>
EOB

while(<>) {
	s/<\/title>/$&\n$style/i;
	print;
}