Skip to content

Instantly share code, notes, and snippets.

@richlowe
richlowe / rofflmao.py
Created February 27, 2011 03:37
roff(1) Line Mangler And Organizer
#!/usr/bin/env python
# roff(1) Line Mangler And Organizer
#
# Reflow a roff (source) document without damaging it:
#
# - Comments are left intact
# - Commands are left intact
# - Known "Verbatim blocks" are left intact
# - tbl(1) Tables