uat defect 130, reps 14

This commit is contained in:
2025-01-11 08:13:18 +00:00
parent adaae7b9b0
commit c627e100e1
8 changed files with 288 additions and 120 deletions
+17 -3
View File
@@ -120,6 +120,17 @@ export const finalComments_pdf = ({ docProps }) => {
})
: [];
Font.registerHyphenationCallback((word) => [word]);
function CleanHTML(htmlStr) {
let cleanStr =
typeof htmlStr === "string"
? htmlStr.replace(/<p><br><\/p>/g, "")
: "";
return cleanStr;
}
return (
<Document>
<Page size="A4" style={styles.page} wrap>
@@ -229,8 +240,9 @@ export const finalComments_pdf = ({ docProps }) => {
</Text>
<Text style={styles.questionAnswer}>
<Html style={styles.richArea}>
{values.conditional_representationCapacity_Comments ||
""}
{CleanHTML(
values.conditional_representationCapacity_Comments
)}
</Html>
</Text>
</View>
@@ -321,7 +333,9 @@ export const finalComments_pdf = ({ docProps }) => {
</View>
<View style={styles.questionAnswerWide}>
<Html style={styles.richArea}>
{values.representationComments || ""}
{CleanHTML(
values.representationComments
)}
</Html>
</View>
</View>