-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[RNMobile] Activate preformat on android #18777
Conversation
Changed target branch to |
2faec82
to
dc7ca04
Compare
Thanks, @hypest I have fixed that one. |
} = this.props; | ||
|
||
// aztec won't trimm spaces in a case of <pre> block, so we are excluding it | ||
if ( tagName === 'pre' ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice and clear way of shortcircuiting willTrimSpaces
in the Preformatted block case!
Can you also add a test in https://github.com/WordPress/gutenberg/blob/master/packages/rich-text/src/component/test/index.native.js to cover that case? Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good suggestion, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works nicely! Let's add the unit test for the new willTrimSpaces
codepath and fix the minor typo and I can review again!
Hey @hypest, I have added unit test and also I have fixed minor typo. |
👋 @marecar3 , seems that the PR needs updating from master and there are a couple of lint issues to fix too. |
# Conflicts: # packages/block-library/src/index.native.js
👋 @hypest , I have update this PR with the latest master and I am not sure about lint issues, as commit before this one was with ✅ https://github.com/WordPress/gutenberg/runs/336677088 |
Sorry, I think I didn't notice the commit that fixed them before! Sorry for the confusion 😞 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description
Activate
pre
format block on Android platform: wordpress-mobile/gutenberg-mobile#1264GB mobile PR: wordpress-mobile/gutenberg-mobile#1615
How has this been tested?
Follow test instructions on
gb-mobile
PR: wordpress-mobile/gutenberg-mobile#1615Checklist: