Take a look at bug #146846; the sources.list parser in libapt-pkg had exactly the same problem, and it was solved in similar fashion. -- - mdz