Skip to content

Job application tracker and AI-powered job search assistant. Helps job seekers manage their search journey with AI resume review, job matching, task logging, and application analytics, all while keeping your data private.

465 B
Raw Blame
// html-to-pdf maps every <p> to a bodyText Text, including an empty one.
// With paragraphSpacing on bodyText.marginBottom, a blank line a user typed
// in Tiptap would print as an empty line plus a full paragraph gap. Dropping
// them here rather than in the shared converter keeps every exported resume
// byte-for-byte what it was.
export function stripEmptyParagraphs(html: string): string {
  return html.replace(/<p>(?:\s|&nbsp;|<br\s*\/?>)*<\/p>/gi, "");
}