removeWhitespace

removes "extra" whitespace from a string. i.e, if there are more than 1 consecutive spaces/tabs, one is removed

line is the string to remove whitespace from commentStart is the character that marks the start of a comment, if ==0, then comments are not not considered

package
string
removeWhitespace
(
string line
,
char commentStart = 0
)

Meta