mirror of
https://github.com/cc65/cc65.git
synced 2025-02-10 09:31:08 +00:00
Be more tolerant with dos/windows line endings.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3901 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
17ac0cb4fa
commit
d66d72bf95
@ -560,8 +560,9 @@ sub Process2 {
|
|||||||
# Count input lines
|
# Count input lines
|
||||||
$LineNo++;
|
$LineNo++;
|
||||||
|
|
||||||
# Remove the newline
|
# Remove the newline at the end of line. Don't use chomp to be able to
|
||||||
chomp ($Line);
|
# read dos/windows sources on unices.
|
||||||
|
$Line =~ s/[\r\n]*$//;
|
||||||
|
|
||||||
# If requested, convert tabs to spaces
|
# If requested, convert tabs to spaces
|
||||||
if ($CvtTabs) {
|
if ($CvtTabs) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user