Closed dotnfc closed 8 months ago
on windows wsl2, we may use TortoiseGit to clone dome repo with CrLf, so the generated .inc files may be incorrect for '\r' char. how about adding serveral lines to handle this in the embedlib.c:
27 if (ptr == '\n') { 28 fputs("'\n',", fp); 29 fputs("\n", fp); 30 } else if (ptr == '\r') { <<< 31 continue; <<< 32 } else { 33 fputs("'", fp);
Just clarifying, you're suggesting adding lines 30 and 31 here?
yes, sure.
on windows wsl2, we may use TortoiseGit to clone dome repo with CrLf, so the generated .inc files may be incorrect for '\r' char. how about adding serveral lines to handle this in the embedlib.c:
27 if (ptr == '\n') { 28 fputs("'\n',", fp); 29 fputs("\n", fp); 30 } else if (ptr == '\r') { <<< 31 continue; <<< 32 } else { 33 fputs("'", fp);