Skip to content
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

Make indent and formatting consistent #204

Merged
merged 1 commit into from
Aug 14, 2024
Merged

Conversation

y-guyon
Copy link
Collaborator

@y-guyon y-guyon commented Nov 21, 2022

Fix nits.


Preview | Diff

@y-guyon y-guyon force-pushed the reformat branch 2 times, most recently from 43936c8 to 9c84f28 Compare November 21, 2022 17:08
index.bs Outdated Show resolved Hide resolved
Copy link
Collaborator

@wantehchang wantehchang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Could you confirm that there are only whitespace changes in this pull request? Thanks.

@y-guyon
Copy link
Collaborator Author

y-guyon commented Jul 1, 2024

LGTM. Could you confirm that there are only whitespace changes in this pull request? Thanks.

Changes:

  • Whitespaces / indent
  • Newlines
  • Missing closing HTML elements
  • Mismatched opening/closing HTML elements

@@ -163,12 +162,12 @@ When an item is of type <dfn value export for="AV1 Image Item Type">av01</dfn>,
- The [=AV1 Image Item Data=] shall be identical to the content of an [=AV1 Sample=] marked as 'sync', as defined in [[!AV1-ISOBMFF]].
- The [=AV1 Image Item Data=] shall have exactly one [=Sequence Header OBU=].
- If the [=AV1 Image Item Data=] consists of a single frame (i.e. when using a single layer),
- It should have its <code>[=still_picture=]</code> flag set to 1.
- It should have its <code>[=reduced_still_picture_header=]</code> flag set to 1.
- It should have its <code>[=still_picture=]</code> flag set to 1.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed while going through the text that there were some mismatches on indentation. Any preference for what we should use? Some of the text used 2 spaces, some 4. I don't think any of the text used tabs.
I'm fine with either :)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Lines 24 to 65 specifically were the ones I noticed)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have a preference for the indentation level, but it would be good to avoid tabs.

Is there a formatting tool similar to clang-format for Bikeshed files?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PDF versions of HEIF I have render code blocks with an indentation width equivalent to 3 spaces.
The libavif source files use 4 spaces.
To keep it inconsistent, I suggest going with 2 spaces for av1-avif.

I will merge this PR as is for now because it contains locally consistent changes and file-wide consistency can be achieved in another PR.

@y-guyon y-guyon merged commit 8ebeb5f into AOMediaCodec:master Aug 14, 2024
@y-guyon y-guyon deleted the reformat branch August 14, 2024 16:12
github-actions bot added a commit that referenced this pull request Aug 14, 2024
SHA: 8ebeb5f
Reason: push, by y-guyon

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit to y-guyon/av1-avif that referenced this pull request Aug 21, 2024
SHA: 8ebeb5f
Reason: push, by y-guyon

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants