Minimod.PrettyText 2.0.1

Extends System.String/IEnumerable<string> by following methods:
   
     a) ShortenTo(int length, string hint = "..."):
          Crops a text to fit into certain number of chars. Appends 'hint' if it has to be cropped;
     
     b) WrapAt(int margin):
          Nicely wraps a text at the given margin. Tries not to split in the middle of words.
     
     c) SplitLines, JoinLines:
          Splits a string into a list of lines; or joins it. Both using Environment.NewLine
     
     d) IEnumerable<string>.IndentBy(int leadingChars):
          Indents a each of a list of lines by given number of spaces.
          
     e) string.IndentLinesBy(int leadingChars):
          Indents each line in the string by given number of spaces.

Install-Package Minimod.PrettyText -Version 2.0.1
dotnet add package Minimod.PrettyText --version 2.0.1
paket add Minimod.PrettyText --version 2.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Dependencies

This package has no dependencies.

Version History

Version Downloads Last updated
2.0.1 (current version) 323 3/15/2016
2.0.0 1,868 9/25/2012
1.0.0 741 8/4/2011
0.9.9 244 8/3/2011
0.9.8 238 7/27/2011
0.9.7 255 7/7/2011
0.9.6 250 7/4/2011
0.9.5 249 7/4/2011
0.9.3 250 7/4/2011
0.9.2 258 7/4/2011