Control: reassign -1 python3-debian 0.1.21+nmu2 Control: affects -1 devscripts Control: retitle -1 Deb822.iter_paragraphs elides a paragraph if followed by a whitespace-only line
On Wed, Jul 10, 2013 at 10:58:04AM -0400, James McCoy wrote: > On Jul 10, 2013 10:00 AM, "Benjamin Drung" <bdr...@debian.org> wrote: > > > > Is this control file valid with the space in the empty line? If so, is > > this a bug in wrap-and-sort or in python3-debian? > > According to policy section 5.1, "The paragraphs are separated by empty > lines. Parsers may accept lines consisting solely of spaces and tabs as > paragraph separators, but control files should use empty lines." > > So a strict parser should require an empty line to delineate a new > paragraph. This seems to be what python3-debian did and it discarded the > entire ibus-gtk paragraph when it encountered the whitespace only line. > > Also in 5.1 is "… and lines consisting only of spaces and tabs are not > allowed within field values or between fields. Empty lines in field values > are usually escaped by representing them by a space followed by a dot." > > According to the above, I'd suggest reassigning this to python3-debian and > that it be changed to either treat the whitespace line as an empty line or > throw an exception staying the file is malformed. -- James GPG Key: 4096R/331BA3DB 2011-12-05 James McCoy <james...@debian.org>
signature.asc
Description: Digital signature