Snippets tagged margins text

  • Calculate left margins

    Take some text and work out where the left margins are, returning the most common margin settings first. Useful for processing somewhat messy text items like movie scripts. Left margins are defined by leading spaces. Tabs must be expanded before calling.

    3 people like this

    Posted: 12 years ago by Kit Eason