Skip to content

Commit d98a8b4

Browse files
authored
Merge pull request #113 from Threagile/fix-for-tag-listing
Fix unicode symbols for tag listing
2 parents aa0fee7 + 6227e4b commit d98a8b4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pkg/report/report.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,8 @@ func (r *pdfReporter) createDisclaimer(parsedModel *types.Model) {
793793
"as well as the chapter about the Threagile toolkit and method used is kept intact as part of the " +
794794
"distributed report or referenced from the distributed parts.")
795795
html := r.pdf.HTMLBasicNew()
796-
html.Write(5, disclaimer.String())
796+
uni := r.pdf.UnicodeTranslatorFromDescriptor("")
797+
html.Write(5, uni(disclaimer.String()))
797798
r.pdfColorBlack()
798799
}
799800

@@ -2496,8 +2497,9 @@ func (r *pdfReporter) createTagListing(parsedModel *types.Model) {
24962497
html.Write(5, "<br><br><br>")
24972498
}
24982499
r.pdfColorBlack()
2499-
html.Write(5, "<b>"+tag+"</b><br>")
2500-
html.Write(5, description)
2500+
uni := r.pdf.UnicodeTranslatorFromDescriptor("")
2501+
html.Write(5, "<b>"+uni(tag)+"</b><br>")
2502+
html.Write(5, uni(description))
25012503
}
25022504
}
25032505
}

0 commit comments

Comments
 (0)