diff options
author | ILYA Khlopotov <iilyak@apache.org> | 2017-08-23 10:07:11 -0700 |
---|---|---|
committer | ILYA Khlopotov <iilyak@apache.org> | 2017-08-23 10:07:11 -0700 |
commit | f3f08993b366eb8f8fb4336a27a4f5509e14c0cf (patch) | |
tree | 225e8665322554a1eaa99ee88da3f4152e7365ef | |
parent | c47f0519197df6c0194aa6f0bf18863cf6afe20a (diff) | |
download | couchdb-f3f08993b366eb8f8fb4336a27a4f5509e14c0cf.tar.gz |
Add comment about structure of TableSpec
-rw-r--r-- | src/couch/src/couch_debug.erl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/couch/src/couch_debug.erl b/src/couch/src/couch_debug.erl index 0638180ce..b649261b2 100644 --- a/src/couch/src/couch_debug.erl +++ b/src/couch/src/couch_debug.erl @@ -419,6 +419,13 @@ shorten_path(Path) -> %% Limmitations: %% - The first column has to be specified as {Width, left, Something} +%% The TableSpec is a list of either: +%% - {Value} +%% - {Width, Align, Value} +%% Align is one of the following: +%% - left +%% - centre +%% - right print_tree(Tree, TableSpec) -> io:format("~s~n", [format(TableSpec)]), map_tree(Tree, fun(_, {Id, Props}, Pos) -> |