home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.coherent
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!sdd.hp.com!news.cs.indiana.edu!umn.edu!csus.edu!netcom.com!messina
- From: messina@netcom.com (Tony Porczyk)
- Subject: Justification algorithm
- Message-ID: <1993Jan12.135306.23168@netcom.com>
- Organization: Messina Software
- Date: Tue, 12 Jan 1993 13:53:06 GMT
- Lines: 16
-
-
- I am writing some scripts / programs for use with vi. I would like
- to find an algorithm for justifying lines (padding the lines inside
- with blanks). Yes, I know nroff will do that, but I would like a
- set of small simple tools which I can then use in a variety of ways.
- Assumptions - lines fed into it are always shorter (or same) as required
- padded length.
- Does anyone know where I could find such an algorithm? I don't want
- to re-invent the wheel...
-
- thanks,
-
- t.
-
- Ps.: I don't need wrapping algorithm, i wrote that already...
-
-