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

Whitespace adjustments in index-list.html and index.html #428

Merged
merged 3 commits into from
Jan 14, 2023

Conversation

waldyrious
Copy link
Contributor

@waldyrious waldyrious commented Jan 6, 2023

  • Indent HTML and add line breaks to make the structure more evident
    (this also helps code editors identify the structure and perform e.g. collapsing of large containers)
  • Remove unnecessary blank lines
  • Nest script at the end of index.html's body tag rather than outside of it
  • Remove unnecessary blank lines
  • Use single space after commas in index-list.html
    Note: the two-spaces list format was first introduced (without explanation) in commit 6c29e8758e.
    (At the time, the helpers/generate-index-list-html.js file was called lib/create-catalog.js.)

@waldyrious waldyrious changed the title Whitespace adjustments in index-list.html Whitespace adjustments in index-list.html and index.html Jan 6, 2023
@b-g
Copy link
Member

b-g commented Jan 13, 2023

@waldyrious Many thanks for this! Could you resolve the conflicts which have been introduced merging mega PR #422? Happy to merge afterwards. Cheers!

This is unnecessary since in HTML whitespace is collapsed
when rendering the page.

Note:
The replacement command that's removed in this commit
was first introduced in commit 6c29e87,
when the `helpers/generate-index-list-html.js` file
was still called `lib/create-catalog.js`.
- Indent HTML and add line breaks to make the structure more evident
  (this also helps code editors identify the structure
  and perform e.g. collapsing of large containers)
- Remove unnecessary blank line at the start of the file
- Nest script at the end of the body tag rather than outside of it
@waldyrious
Copy link
Contributor Author

Hey @b-g, I've rebased the branch. I checked the old and the new diffs in whitespace-insensitive mode and they seem to be equivalent, so I suppose the changes should be ready to merge :) apologies for the mess — this kind of formatting changes is quite prone to conflict indeed.

@b-g b-g merged commit a7b2dcc into hfg-gmuend:master Jan 14, 2023
@b-g
Copy link
Member

b-g commented Jan 14, 2023

@waldyrious Many thanks! Merged.

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.

2 participants