uat defect 130, reps 14
This commit is contained in:
@@ -120,6 +120,17 @@ export const other_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>
|
||||
@@ -262,7 +273,9 @@ export const other_pdf = ({ docProps }) => {
|
||||
</View>
|
||||
<View style={styles.questionAnswerWide}>
|
||||
<Html style={styles.richArea}>
|
||||
{values.representationComments || ""}
|
||||
{CleanHTML(
|
||||
values.representationComments
|
||||
)}
|
||||
</Html>
|
||||
</View>
|
||||
</View>
|
||||
|
||||
Reference in New Issue
Block a user