Re: Security page APT line

Boyuan Yang <[email protected]>
Newsgroups gmane.linux.debian.devel.www
Organization Debian Project
Message-ID <[email protected]>
Hi,

在 2023-01-08星期日的 06:54 -0600,Jeff Cutsinger写道:
> Apologies if this is the wrong place to report this.
> 
> On the page https://www.debian.org/security/,  the APT sources.list code 
> is incorrect. Instead of
> 
> `deb http://security.debian.org/debian-security bullseye-
> security main contrib non-free`
> 
> it should be
> 
> `deb http://security.debian.org/debian-security bullseye-security main 
> contrib non-free`
> 
> If you're having difficulty telling the difference between these two, 
> maybe it'll make sense if you see the HTML:
> 
> `deb&nbsp;
> http://security.debian.org/debian-security&nbsp;bullseye-security&nbsp;mai
> n&nbsp;contrib&nbsp;non-free`
> 
> Actually I lied, there's no actual difference between the lines in this 
> e-mail, because my editor autocorrects the whitespace. However, copying 
> and pasting the line from the web page into a sources.list file results in
> 
> `E: Malformed line X in source list /etc/apt/sources.list (type)`
> 
> even though the line looks identical to the correct one.

This is somehow an interesting case. The use of &nbsp; is semantically
correct since these spaces are indeed non-breaking to form a single APT
line. However, if you copy and paste using web browsers, you will definitely
not get anything like "&nbsp;" because the browser will escape them in
advance. The only case that comes in my mind is that you are only reading
the webpage source code through plain text reader, which is not easy to
accommodate.

If you are indeed using any reasonably-modern web browser when copy-pasting
this APT line and still gets the "&nbsp;", please let us know. Ideally a
step-by-step instruction on reproducing the issue would be great.

Thanks,
Boyuan Yang
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEfncpR22H1vEdkazLwpPntGGCWs4FAmO/Gb8ACgkQwpPntGGC
Ws6wMRAAmZVZmr60kECt0d2XpxsMxBNzysDfloVQQAq0+Dw+kMkIjzeWSfDZIO6a
Xa5VRv8rZBrlE7j8f8WsjJ5IilK09yeLyeYlfx9VDuqSVSFwQEgYPEN7d7T+Z6wI
d+GT40r1X/HoTs6etxzjlRz/TS1gxx+BZtqulVmlhVPzZ1iJKLMnQjgKJLSXuCSg
epoaTg+rf8uoxlJXyfFXz+s5aiRkyX17I4rrPdxfh+F2KZKw7pKiwspK/TnRlNGF
+p6PPd6Mx8snQu0Ruex6huQ6pNtoJNChZzwyW+8cBump0y0kxWzwbCFVp3Hj7ZS0
k6Hl9c1Dv0+xv/szqCMFOwfYzoeFzzcissH09lACIXJ+XA7Ujpr+XKqHFx6MwUFe
d8FFAp+9KX9lEU3Q4w1KOmAmsTkpmqB8VYqNr4GAkFF0Ld71V1fU28+T/kNq/chZ
8JUX6CDr6XeROG+S2qH8CZZRtRB1J6ZmTq6TJ4bc5OYQXSDeG+UmlVs5gH4XPgJD
MEzQWKcXGmqHmuuaoTmuCGnOxccfZ0mlkUa8FgQpmqiSZhwJg6dgGj4Tx4wTFTFs
oUlVWdHkJPRFZ4P7bZUvXf79rzVNpA+VoJ2hNSpZ5+sIXpuzo70HOCPofSNLy0Kx
EHwZDXUbxtnLC6DlIuDhUxZFEh5HJdYfYZUviglLUtbuOhocAw0=
=f5vo
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.