From c7e76853149a063c95dacacf735848d42d73fa01 Mon Sep 17 00:00:00 2001 From: xarkes Date: Tue, 10 Dec 2019 08:32:52 +0100 Subject: [PATCH] Fixed some documentation formatting (#1909) --- docs/source/code.rst | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/docs/source/code.rst b/docs/source/code.rst index 9586b57b..9d86c5d9 100644 --- a/docs/source/code.rst +++ b/docs/source/code.rst @@ -21,10 +21,13 @@ Example: Calling a radare2 command ~~~~~~~~~~~~~~~~~~~~~~~~~ -There are two ways to do it: \* ``CutterCore::cmd()`` *(Discouraged)* -Only use it for commands which yells no output \* ``CutterCore::cmdj()`` -To be used with json commands like ``cmdj("agj")`` or ``cmdj("aflj")``. -It is way easier to parse a json output. +There are two ways to do it: + +- ``CutterCore::cmd()`` *(Discouraged)* Only use it for commands which yells no output +- ``CutterCore::cmdj()`` To be used with json commands like ``cmdj("agj")`` or ``cmdj("aflj")``. + +Generally, if one needs to retrieve information from a radare2 command, it +is preferred to use the json API. Example: