File: fixman.py

package info (click to toggle)
skytools 2.1.8-2.2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,980 kB
  • ctags: 1,543
  • sloc: sql: 6,635; python: 6,237; ansic: 2,799; makefile: 308; sh: 268
file content (11 lines) | stat: -rwxr-xr-x 277 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
#! /usr/bin/env python

import sys,re

# hacks to force empty lines into manpage
ln1 = r"\1<simpara></simpara>\2"
xml = sys.stdin.read()
xml = re.sub(r"(</literallayout>\s*)(<simpara)", ln1, xml)
xml = re.sub(r"(</variablelist>\s*)(<simpara)", ln1, xml)
sys.stdout.write(xml)