`n"
-
- if($value."lines"){
- $dict_text += $("`n" + (parse_list $value."lines") + "`n")
- }
-
- if($value."sections"){
- $dict_text += (parse_dict $value."sections")
- }
- }
-
- return $dict_text
-
-}
-
-function parse_list {
- param (
- [System.Object] $json_list
- )
- # Parse the given list from the given json adding it to the HTML file
-
- $color_text=""
- $color_class=""
-
- $special_char = [String][char]0x2550
- $special_char_2 = [String][char]0x2563
-
- foreach($i in $json_list){
- if(-not $i."clean_text".Contains($special_char*3)){
- if($i."clean_text"){
- $color_text += "
" + $replacement + "")
- if($text.Contains($special_char_2)){
- $text = $text.Replace($special_char_2, "
")
- $text += ""
- }
- }
- $color_text += "" + $color_class + " "
- }
- $color_text += "no_color`" >" + $text + "
`n"
- }
-
- }
- }
- return $color_text + "`t`t`t
`n"
-}
-
-function parse_json {
- param (
- $json_data
- )
-
- $body = ""
- $i = 1
-
- foreach($obj in $json_data.psobject.properties){
- $key = $obj.Name
- $value = $obj.Value
- $body += " `t`t`n"
- $i += 1
- foreach($obj_2 in $value.psobject.properties) {
- $key1 = $obj_2.Name
- $value1 = $obj_2.Value
- if($value1.GetType().BaseType -eq [System.Object]){
- $body += parse_dict $value1
- }
-
- }
-
- $body += "`t`t`t
`n"
- }
-
- return $body
-}
-
-$HTML_HEADER = @"
-
-
-