diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2015-01-12 22:35:20 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2015-01-12 22:35:20 +0800 |
commit | 24a2335c01fa2d0baeda97b795a9bf8b05b6529d (patch) | |
tree | 7af7109695f3a894314f8640c692c11b3518236c | |
parent | a5d32e489451750c4ff4de05cf807326fafc02a6 (diff) | |
parent | c9446183b5180c2fe9e6d87fbedc98b15e0c47ac (diff) | |
download | dexon-solidity-24a2335c01fa2d0baeda97b795a9bf8b05b6529d.tar dexon-solidity-24a2335c01fa2d0baeda97b795a9bf8b05b6529d.tar.gz dexon-solidity-24a2335c01fa2d0baeda97b795a9bf8b05b6529d.tar.bz2 dexon-solidity-24a2335c01fa2d0baeda97b795a9bf8b05b6529d.tar.lz dexon-solidity-24a2335c01fa2d0baeda97b795a9bf8b05b6529d.tar.xz dexon-solidity-24a2335c01fa2d0baeda97b795a9bf8b05b6529d.tar.zst dexon-solidity-24a2335c01fa2d0baeda97b795a9bf8b05b6529d.zip |
Merge pull request #785 from LefterisJP/natspec_emptyDocstringFix
Fix Natspec tagless bug
-rw-r--r-- | InterfaceHandler.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/InterfaceHandler.cpp b/InterfaceHandler.cpp index 4ce6e989..a5c6f4a1 100644 --- a/InterfaceHandler.cpp +++ b/InterfaceHandler.cpp @@ -349,8 +349,13 @@ void InterfaceHandler::parseDocString(std::string const& _string, CommentOwner _ } else if (m_lastTag != DocTagType::NONE) // continuation of the previous tag currPos = appendDocTag(currPos, end, _owner); - else if (currPos != end) // skip the line if a newline was found + else if (currPos != end) + { + if (nlPos == end) //end of text + return; + // else skip the line if a newline was found currPos = nlPos + 1; + } } } |