[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.
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.
Good suggestion, thanks!
hypest
left a comment
There was a problem hiding this comment.
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 😞 |

Description
Activate
preformat 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-mobilePR: wordpress-mobile/gutenberg-mobile#1615Checklist: