Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

[autofix.ci] apply automated fixes

autofix-ci[bot]617135466da0
diff --git a/packages/pdf/src/templates/shared/rich-text.tsx b/packages/pdf/src/templates/shared/rich-text.tsx
index 959606897..6b8bdb763 100644
--- a/packages/pdf/src/templates/shared/rich-text.tsx
+++ b/packages/pdf/src/templates/shared/rich-text.tsx
@@ -128,14 +128,12 @@ export const RichText = ({ children }: RichTextProps) => {
</PdfText>
);
- let hasNestedList = false;
- if (Array.isArray(children)) {
- hasNestedList = children.some(
- (child) =>
- child?.props?.element?.rawTagName === "ul" ||
- child?.props?.element?.rawTagName === "ol",
- );
- }
+ let hasNestedList = false;
+ if (Array.isArray(children)) {
+ hasNestedList = children.some(
+ (child) => child?.props?.element?.rawTagName === "ul" || child?.props?.element?.rawTagName === "ol",
+ );
+ }
// Same BiDi-injection trick as the <p> renderer — see applyRtlDirectionRecursively.
const contentNode = rtl ? (
@@ -164,7 +162,7 @@ export const RichText = ({ children }: RichTextProps) => {
>
<View style={{ flexDirection: "row", alignItems: "flex-start" }}>
{markerNode}
- <View style={hasNestedList ? { flex: 1 } : {}}>{children}</View>
+ <View style={hasNestedList ? { flex: 1 } : {}}>{children}</View>
</View>
</View>
);