Project

linesetter

0.0
No commit activity in last 3 years
No release in over 3 years
Reformats a given paragraph to fit on 78-character-wide lines, retaining the left indent in spaces.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

>= 1.2.9
 Project Readme

Linesetter helps you reformat your paragraphs.

If you start out with ugly long lines of text, or unsightly short ones with a ragged right edge, linesetter will whip your text back into shape by putting as many words on each line that will fit in 78 characters, while retaining a left-side indent of spaces.

Example

Before

We the People of the United States
in Order to form a more perfect Union, establish Justice, insure domestic Tranquility,
provide for the common defence, promote the general
Welfare

After

We the People of the United States in Order to form a more perfect Union,
establish Justice, insure domestic Tranquility, provide for the common
defence, promote the general Welfare

Simple, easy, effective.

Installation

gem install linesetter

Optional TextMate Command

You can drag the Linesetter.tmCommand file from extras/ into TextMate's Bundle Editor to get a handy command that runs linesetter from TextMate. It's set up with a default keyboard shortcut of ⌘+ (⌘⇧=).