diff options
author | rivenhk <adamsau@hotmail.com.hk> | 2017-10-19 20:20:07 +0800 |
---|---|---|
committer | rivenhk <adamsau@hotmail.com.hk> | 2017-10-19 20:20:07 +0800 |
commit | 950f5ae7d762f5878b69043da16e9e27485d4c57 (patch) | |
tree | 7c50f5481f4feb022b98f64d71e09d9ac38df405 /libsolidity/interface/SourceReferenceFormatter.cpp | |
parent | d53c44a066ad70a34a5c7d858e1cb6afa1cbda3a (diff) | |
download | dexon-solidity-950f5ae7d762f5878b69043da16e9e27485d4c57.tar dexon-solidity-950f5ae7d762f5878b69043da16e9e27485d4c57.tar.gz dexon-solidity-950f5ae7d762f5878b69043da16e9e27485d4c57.tar.bz2 dexon-solidity-950f5ae7d762f5878b69043da16e9e27485d4c57.tar.lz dexon-solidity-950f5ae7d762f5878b69043da16e9e27485d4c57.tar.xz dexon-solidity-950f5ae7d762f5878b69043da16e9e27485d4c57.tar.zst dexon-solidity-950f5ae7d762f5878b69043da16e9e27485d4c57.zip |
updated formatting when source snippets is too long
Diffstat (limited to 'libsolidity/interface/SourceReferenceFormatter.cpp')
-rw-r--r-- | libsolidity/interface/SourceReferenceFormatter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libsolidity/interface/SourceReferenceFormatter.cpp b/libsolidity/interface/SourceReferenceFormatter.cpp index 256adccc..aeafaf2d 100644 --- a/libsolidity/interface/SourceReferenceFormatter.cpp +++ b/libsolidity/interface/SourceReferenceFormatter.cpp @@ -53,9 +53,9 @@ void SourceReferenceFormatter::printSourceLocation( int locationLength = endColumn - startColumn; if (locationLength > 150) { - line = line.substr(0, startColumn + 75) + " ... " + line.substr(endColumn); - endColumn = startColumn + 80; - locationLength = 80; + line = line.substr(0, startColumn + 35) + " ... " + line.substr(endColumn - 35); + endColumn = startColumn + 75; + locationLength = 75; } if (line.length() > 150) { |