Fixing another parsing issue preventing delete edit hunks to be recorded

pmeunier
Feb 27, 2023, 5:56 PM
L5I5B4PVH7CVP2Y5LRNCM4IPOMVSKA553RTJG7MCM7PS2JQJGAEAC

Dependencies

  • [2] FVN4TICG Refusing to parse patches to binary files converted to text format, as there is no way to make sense of them
  • [3] 5FI6SBEZ Re-implement change printing and parsing

Change contents

  • replacement in libpijul/src/change/parse.rs at line 371
    [2.44][2.44:201]()
    fold_many1(
    complete(|i| parse_content_line(leading_char, i)),
    String::new,
    |s, r| s + r.as_str(),
    )(i)?
    [2.44]
    [2.201]
    if encoding.is_none() {
    return Err(nom::Err::Error(nom::error::Error::new(
    i,
    nom::error::ErrorKind::Verify,
    )))
    } else {
    fold_many0(
    complete(|i| parse_content_line(leading_char, i)),
    String::new,
    |s, r| s + r.as_str(),
    )(i)?
    }