mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
updated formatting when source snippets is too long
This commit is contained in:
parent
d53c44a066
commit
950f5ae7d7
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user