Skip to content
  • Oleg Grenrus's avatar
    3e17cec9
    Make readFields warn about inconsistent indentation. · 3e17cec9
    Oleg Grenrus authored and f-a's avatar f-a committed
    This is affect of using indentOfAtLeast method:
    any indentation greater than current offset is fine.
    
    That behavior is desirable to parsing multiline field contents,
    but it is a bit surprising for fields, which we expect to be aligned.
    
    Such insonsistency seems to be always a mistake, and it's easy to fix once
    a machine points it out.
    3e17cec9
    Make readFields warn about inconsistent indentation.
    Oleg Grenrus authored and f-a's avatar f-a committed
    This is affect of using indentOfAtLeast method:
    any indentation greater than current offset is fine.
    
    That behavior is desirable to parsing multiline field contents,
    but it is a bit surprising for fields, which we expect to be aligned.
    
    Such insonsistency seems to be always a mistake, and it's easy to fix once
    a machine points it out.
Loading