diff --git a/CSSCompare/Program.cs b/CSSCompare/Program.cs index 828e888..583b16e 100644 --- a/CSSCompare/Program.cs +++ b/CSSCompare/Program.cs @@ -269,12 +269,18 @@ private static void AddNormalizedLine(string line, ref StringBuilder output) int semicolon = currentLine.IndexOf(";"); while (semicolon > -1 && !string.IsNullOrEmpty(currentLine)) { - // Handle empty lines. + // Handle lines starting with a semicolon. if (semicolon == 0) { if (currentLine.Length > 1) + { currentLine = currentLine.Substring(1); + semicolon = currentLine.IndexOf(";"); + continue; + } else + { return; + } } if (semicolon < currentLine.Length - 1)