Update app.py
Browse files
app.py
CHANGED
@@ -473,15 +473,15 @@ def generate_documentation_page():
|
|
473 |
pdf = FPDF()
|
474 |
pdf.set_auto_page_break(auto=True, margin=15)
|
475 |
pdf.add_page()
|
476 |
-
pdf.set_font("
|
477 |
|
478 |
# Write documentation to PDF with headers
|
479 |
for line in documentation.split("\n"):
|
480 |
if line.startswith("Project Summary:") or line.startswith("Functionality Summary:") or \
|
481 |
line.startswith("Functionality Flow:") or line.startswith("Function Documentation:"):
|
482 |
-
pdf.set_font("
|
483 |
-
elif line.startswith("
|
484 |
-
pdf.set_font("
|
485 |
else:
|
486 |
pdf.set_font("Arial", size=12)
|
487 |
pdf.multi_cell(0, 10, line)
|
@@ -515,7 +515,7 @@ def generate_pdf(documentation):
|
|
515 |
|
516 |
# Add headers and content
|
517 |
for line in documentation.splitlines():
|
518 |
-
if line.startswith("- '")
|
519 |
pdf.set_font("Courier", style="B", size=12) # Bold for specific lines
|
520 |
pdf.multi_cell(0, 10, line)
|
521 |
elif line.startswith("Project Summary:") or line.startswith("Functionality Summary:") or \
|
|
|
473 |
pdf = FPDF()
|
474 |
pdf.set_auto_page_break(auto=True, margin=15)
|
475 |
pdf.add_page()
|
476 |
+
pdf.set_font("Courier", size=12)
|
477 |
|
478 |
# Write documentation to PDF with headers
|
479 |
for line in documentation.split("\n"):
|
480 |
if line.startswith("Project Summary:") or line.startswith("Functionality Summary:") or \
|
481 |
line.startswith("Functionality Flow:") or line.startswith("Function Documentation:"):
|
482 |
+
pdf.set_font("Courier", style="B", size=14)
|
483 |
+
elif line.startswith("- '"):
|
484 |
+
pdf.set_font("Courier", style="B", size=12)
|
485 |
else:
|
486 |
pdf.set_font("Arial", size=12)
|
487 |
pdf.multi_cell(0, 10, line)
|
|
|
515 |
|
516 |
# Add headers and content
|
517 |
for line in documentation.splitlines():
|
518 |
+
if line.startswith("- '"):
|
519 |
pdf.set_font("Courier", style="B", size=12) # Bold for specific lines
|
520 |
pdf.multi_cell(0, 10, line)
|
521 |
elif line.startswith("Project Summary:") or line.startswith("Functionality Summary:") or \
|