Skip to content

Rewrite logic for block quotes when using JAVAMSGFORMAT_ALL#139

Merged
jugu merged 4 commits intoIBM-Cloud:masterfrom
jugu:blockquotes
Mar 20, 2019
Merged

Rewrite logic for block quotes when using JAVAMSGFORMAT_ALL#139
jugu merged 4 commits intoIBM-Cloud:masterfrom
jugu:blockquotes

Conversation

@jugu
Copy link
Contributor

@jugu jugu commented Mar 19, 2019

The current implementation of converting single block quote to double block quotes fails to handle certain edge cases like a simple line ' (where the block quote is at the very end).
Also the text obtained after converting single block quote to double single block quote may be a valid ICU message format, but may not be a valid java message format. Added additional check to make sure that the message pattern satisfies both ICU and java message format post double block quote conversion, with a fallback to the original text in case of compliance failure.

@jugu jugu requested a review from yumaoka March 19, 2019 16:50
@jugu jugu self-assigned this Mar 19, 2019
@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 51.796% when pulling b55c013 on jugu:blockquotes into 2fa4474 on IBM-Cloud:master.

Copy link
Contributor

@yumaoka yumaoka left a comment

Choose a reason for hiding this comment

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

LGTM. Please resolve merge conflict.

@jugu jugu merged commit dcbf16a into IBM-Cloud:master Mar 20, 2019
@jugu jugu deleted the blockquotes branch March 20, 2019 22:59
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