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

📖 Support newlines for amp-script meta hashes #33902

Merged
merged 3 commits into from
Apr 21, 2021

Conversation

rcebulko
Copy link
Contributor

@rcebulko rcebulko commented Apr 19, 2021

Related to #33402

Publishers wanting to use multiple inline amp-scripts in a page require multiple source SHAs. The current parsing logic expects them to be a space-delimited list in a single meta tag, but this is undocumented and non-obvious. This PR:

  • adds documentation describing supported formats
  • adds support for newlines in the meta attribute value for better publisher diffs/readability

@rcebulko rcebulko marked this pull request as ready for review April 20, 2021 19:13
Copy link
Contributor

@CrystalOnScript CrystalOnScript left a comment

Choose a reason for hiding this comment

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

Just one nit, otherwise LGTM

Co-authored-by: CrystalOnScript <crystallambert@google.com>
@rcebulko rcebulko merged commit ea4b2b9 into ampproject:main Apr 21, 2021
@rcebulko rcebulko deleted the multiscript branch April 21, 2021 02:01
rochapablo pushed a commit to rochapablo/amphtml that referenced this pull request Aug 30, 2021
* Support newlines for amp-script meta hashes

* Update documentation

* Update extensions/amp-script/amp-script.md

Co-authored-by: CrystalOnScript <crystallambert@google.com>

Co-authored-by: CrystalOnScript <crystallambert@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants