aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2014-12-05 09:10:54 +0800
committerLefteris Karapetsas <lefteris@refu.co>2014-12-05 09:10:54 +0800
commit54f353da1002de55541704664ddc764c406979f3 (patch)
tree882531c360186ecc10b2c6eb0e153b329c5ca563
parentb6c8e9e011141ef82c27e9df299e7a9771069133 (diff)
downloaddexon-solidity-54f353da1002de55541704664ddc764c406979f3.tar.gz
dexon-solidity-54f353da1002de55541704664ddc764c406979f3.tar.zst
dexon-solidity-54f353da1002de55541704664ddc764c406979f3.zip
Using iterators in Natspec comment parsing
- Used iterators in the entirety of the InterfaceHandler natspec comment parsing pipeline - Fixed issue where @param continuing in new line would not get a space
-rw-r--r--solidityNatspecJSON.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/solidityNatspecJSON.cpp b/solidityNatspecJSON.cpp
index 2c4be219..f2ae15c9 100644
--- a/solidityNatspecJSON.cpp
+++ b/solidityNatspecJSON.cpp
@@ -230,7 +230,7 @@ BOOST_AUTO_TEST_CASE(dev_mutiline_param_description)
" \"mul\":{ \n"
" \"details\": \"Multiplies a number by 7 and adds second parameter\",\n"
" \"params\": {\n"
- " \"a\": \"Documentation for the first parameter starts here.Since it's a really complicated parameter we need 2 lines\",\n"
+ " \"a\": \"Documentation for the first parameter starts here. Since it's a really complicated parameter we need 2 lines\",\n"
" \"second\": \"Documentation for the second parameter\"\n"
" }\n"
" }\n"
@@ -305,7 +305,7 @@ BOOST_AUTO_TEST_CASE(dev_return)
" \"mul\":{ \n"
" \"details\": \"Multiplies a number by 7 and adds second parameter\",\n"
" \"params\": {\n"
- " \"a\": \"Documentation for the first parameter starts here.Since it's a really complicated parameter we need 2 lines\",\n"
+ " \"a\": \"Documentation for the first parameter starts here. Since it's a really complicated parameter we need 2 lines\",\n"
" \"second\": \"Documentation for the second parameter\"\n"
" },\n"
" \"return\": \"The result of the multiplication\"\n"
@@ -332,7 +332,7 @@ BOOST_AUTO_TEST_CASE(dev_multiline_return)
" \"mul\":{ \n"
" \"details\": \"Multiplies a number by 7 and adds second parameter\",\n"
" \"params\": {\n"
- " \"a\": \"Documentation for the first parameter starts here.Since it's a really complicated parameter we need 2 lines\",\n"
+ " \"a\": \"Documentation for the first parameter starts here. Since it's a really complicated parameter we need 2 lines\",\n"
" \"second\": \"Documentation for the second parameter\"\n"
" },\n"
" \"return\": \"The result of the multiplication and cookies with nutella\"\n"