Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int AddCount = 0;
- int Space, Mod;
- int Next;
- do
- {
- Mod = AddCount % Whitespaces.Count;
- Space = (int)Whitespaces[Mod];
- line = line.Insert(Space, "S");
- AddCount++;
- for (int SpaceCount = 0; SpaceCount < Whitespaces.Count; SpaceCount++)
- {
- Next = (int)Whitespaces[SpaceCount];
- if (Next >= Space)
- {
- Whitespaces.RemoveAt(SpaceCount);
- Whitespaces.Insert(SpaceCount, Next + 1);
- }
- }
- }
- while(AddCount <= wrap - line.Length || line.Length < wrap);
Add Comment
Please, Sign In to add comment