CSSCompare icon indicating copy to clipboard operation
CSSCompare copied to clipboard

Update the index of the semicolon after truncating the line starting with a semicolon

Open pzhlkj6612 opened this issue 4 years ago • 0 comments

Hi. This project is great and thank you for your work.

I found an issue with string handling and tried to fix it. Please review and test the changes.

For testing

File v1.css:

selector {
    property_0:value_0;property_1:value_1
}

File v2.css is empty.

Output:

> .\CSSCompare.exe -v1 .\v1.css -v2 .\v2.css
selector{
        property_0:value_0
        p
        property_1:value_1
}

After applying the changes:

> .\CSSCompare.exe -v1 .\v1.css -v2 .\v2.css
selector{
        property_0:value_0
        property_1:value_1
}

pzhlkj6612 avatar Oct 26 '20 10:10 pzhlkj6612