Skip to content
Snippets Groups Projects
Commit dd789a3f authored by Etienne Kneuss's avatar Etienne Kneuss
Browse files

One line at most, 35 chars at most

parent c5998b04
No related branches found
No related tags found
No related merge requests found
......@@ -25,8 +25,9 @@ case class VerificationReport(val results: Map[VC, Option[VCResult]]) {
def sizeLimit(str: String, limit: Int): String = {
require(limit > 3)
if (str.length > limit) {
str.substring(0, limit-3)+"..."
val res = str.takeWhile(_ != '\n').take(35)
if (res != str) {
res + "..."
} else {
str
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment