-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
MINOR: Fix newlines not working in LISTENERS_DOC #18388
MINOR: Fix newlines not working in LISTENERS_DOC #18388
Conversation
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.
Thanks for the patch. Leave a minor comment.
" <code>CLIENT://0.0.0.0:9092,REPLICATION://localhost:9093</code>%n" + | ||
" <code>PLAINTEXT://127.0.0.1:9092,SSL://[::1]:9092</code>%n"; | ||
public static final String LISTENERS_DOC = String.format("Listener List - Comma-separated list of URIs we will listen on and the listener names." + | ||
" If the listener name is not a security protocol, <code>%1$1s</code> must also be set.%n" + |
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.
Why using %1$1s
? Change to %s
can fix the issue on my laptop.
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.
You are right.
Use %s
can work on it.
I fixed it.
Thank you for your comment.
4167d58
to
1431d45
Compare
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. Thanks for the patch.
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.
Thanks for @clarkwtc, left a little comment.
" Listener names and port numbers must be unique unless %n" + | ||
" one listener is an IPv4 address and the other listener is %n" + |
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.
nit This seems to be a complete sentence. Could you remove the line separator?”
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.
Yeah, it is a good point.
I removed it.
Thank you for your comment.
1431d45
to
5e9f528
Compare
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
Reviewers: Ken Huang <[email protected]>, PoAn Yang <[email protected]>, Chia-Ping Tsai <[email protected]>
Reviewers: Ken Huang <[email protected]>, PoAn Yang <[email protected]>, Chia-Ping Tsai <[email protected]>
Fix newlines not working with
%n
in LISTENERS_DOCFollowing the Kafka site preview below:
Before
After
Committer Checklist (excluded from commit message)