Yifan Zhang has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/18566 )
Change subject: [Doc][Format] Format help document support using Enter Key ...................................................................... [Doc][Format] Format help document support using Enter Key Kudu uses Function:AppendHardWrapped to format a description of a command, which will split the string when it's length is more than 78. But this function don't handle Enter key in the string, the formatted result is indent. For example: Original string: "Attempts to create on-disk metadata that can be used by master.\n" "It also can be used by a replicated tserver\n" Old function output: Attempts to create on-disk metadata that can be used by master. It also can be used by a replicated tserver New function output: Attempts to create on-disk metadata that can be used by master. It also can be used by a replicated tserver The new Function will split the string using '\n', then split every line when it's length is more than 78. Change-Id: I1bd15bd2de292f534e90ac24e925bf605ddf6d7b Reviewed-on: http://gerrit.cloudera.org:8080/18566 Tested-by: Kudu Jenkins Reviewed-by: Yifan Zhang <[email protected]> --- M src/kudu/tools/tool_action-test.cc M src/kudu/tools/tool_action.cc M src/kudu/tools/tool_action.h M src/kudu/tools/tool_action_master.cc 4 files changed, 172 insertions(+), 63 deletions(-) Approvals: Kudu Jenkins: Verified Yifan Zhang: Looks good to me, approved -- To view, visit http://gerrit.cloudera.org:8080/18566 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: merged Gerrit-Change-Id: I1bd15bd2de292f534e90ac24e925bf605ddf6d7b Gerrit-Change-Number: 18566 Gerrit-PatchSet: 19 Gerrit-Owner: Wang Xixu <[email protected]> Gerrit-Reviewer: Alexey Serbin <[email protected]> Gerrit-Reviewer: Kudu Jenkins (120) Gerrit-Reviewer: Tidy Bot (241) Gerrit-Reviewer: Wang Xixu <[email protected]> Gerrit-Reviewer: Yifan Zhang <[email protected]> Gerrit-Reviewer: Yingchun Lai <[email protected]>
