Skip to content

Commit

Permalink
Debug Cv pdf generation
Browse files Browse the repository at this point in the history
  • Loading branch information
dragutin-nav committed Dec 26, 2023
1 parent a3ce73c commit 89c4284
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class JsonViewer() {
return "";
}
jsonObj = JSONObject(inputJson?.substring(inputJson.indexOf("{"), inputJson.lastIndexOf("}") + 1) ?: "")
val output = "<div className='oyblikksbilde-visning__json-visning'>" + objToReact(jsonObj) + "</div>";
val output = "<div class='oyblikksbilde-visning__json-visning'>" + objToReact(jsonObj) + "</div>";
SecureLog.secureLog.info(output)
return output;
}
Expand All @@ -38,7 +38,7 @@ class JsonViewer() {
output += getLink(key, value)
}
output += "<div class='json-key-wrapper'>";
output += "<span className='json-key'>";
output += "<span class='json-key'>";
output += prettifyKey(key) + ": ";
output += "</span>";
output += "<span>";
Expand All @@ -47,7 +47,7 @@ class JsonViewer() {
output += "</div>"
} else if (value is JSONArray) {
output += "<div class='json-array-wrapper'>";
output += "<h3 className='json-key'>" + prettifyKey(key) + "</h3>";
output += "<h3 class='json-key'>" + prettifyKey(key) + "</h3>";
if (value.length() > 0) {
output += "<ul class='json-array'>";
value.forEach { arrValue ->
Expand All @@ -57,7 +57,7 @@ class JsonViewer() {
}
output += "</ul>";
} else {
output += "<p className='json-array-empty'>Ingen oppføringer</p>"
output += "<p class='json-array-empty'>Ingen oppføringer</p>"
}
output += "</div>";
} else if (value is JSONObject) {
Expand Down

0 comments on commit 89c4284

Please sign in to comment.