-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix indentation of code blocks, keeping them at 69 columns #417
Conversation
Co-authored-by: Christopher Wood <[email protected]>
@conradoplg I don't feel strongly about this being valid Python, but if that's the motivation, can we make the reference implementation match this exactly? |
I can, but that wouldn't accomplish much, because they already differ, e.g. spec:
While the reformatted reference implementation would look like this:
Also it seems better to keep using 4-space identation in the reference code for readability. |
Yeah, they differ now, but I thought it might be nice if they were identical. That way there's no question about inconsistencies. |
What I meant is that they are different in content, not only in formatting, e.g. |
Ah, yes, right! I'm going to mull on this for a bit, if that's OK? There's no rush to merge it. |
OK, after thinking about this, I'm totally comfortable trying to address parity in a separate PR, keeping this one focused on the original width issue. I can own the followup issue on parity. |
Co-authored-by: Christopher Wood <[email protected]>
RFC must have at most 72 columns. Since code blocks are indented with 3 spaces, this means that they must have at most 69 columns.
The text parts (inputs, outputs) were indented manually. The Python parts were indented using
autopep8
. Some parts may look weird but that's how they are usually indented in Python. Let me know if anything is too strange, it's likely possible to change it by e.g. adding more parenthesis.To see that everything have been fixed, just run
make
and see that there are no warnings are output.Note that it was also giving a warning
Warning: Expected a valid submissionType (stream) setting, one of IETF, IAB, IRTF, independent, but found None. Will use 'IETF'
. Thus I explicitly set it toIETF
.Closes #406