Hello Tidy Bot, Yingchun Lai, Yifan Zhang, Kudu Jenkins,

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/18566

to look at the new patch set (#12).

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, if the length of a string is 78*2, and it contains
a '\n' in the position 70. After formatted, it will have 3 lines.
The first line is about 70 length, the second is 8 length, the last
is 78 length. But we expect it has 3 lines. The first is 70, the
second is 78, the last is 8.

The new Function will split the string using '\n', then split
every line when it's length is more than 78.

Change-Id: I1bd15bd2de292f534e90ac24e925bf605ddf6d7b
---
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, 128 insertions(+), 63 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/66/18566/12
--
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: newpatchset
Gerrit-Change-Id: I1bd15bd2de292f534e90ac24e925bf605ddf6d7b
Gerrit-Change-Number: 18566
Gerrit-PatchSet: 12
Gerrit-Owner: Wang Xixu <[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]>

Reply via email to