Update app.py
Browse files
app.py
CHANGED
@@ -361,7 +361,9 @@ def generate_detailed_documentation(file_contents, functionality_description):
|
|
361 |
4. Generate detailed documentation ONLY for each function INVOLVED in the enhanced user-specified functionality:
|
362 |
'
|
363 |
Function Documentation:
|
364 |
-
For each
|
|
|
|
|
365 |
- '<function name>':
|
366 |
- Summary: <Description of the function's purpose>
|
367 |
- Inputs: <Details of inputs and their types>
|
@@ -542,7 +544,7 @@ def generate_pdf(documentation, pdf_path):
|
|
542 |
# Add headers and content
|
543 |
for line in documentation.splitlines():
|
544 |
try:
|
545 |
-
if line.startswith("- '"):
|
546 |
pdf.set_font("Courier", style="B", size=12) # Bold for specific lines
|
547 |
pdf.multi_cell(0, 10, line.encode('latin-1', 'replace').decode('latin-1'))
|
548 |
elif line.startswith("Project Summary:") or line.startswith("Functionality Summary:") or \
|
|
|
361 |
4. Generate detailed documentation ONLY for each function INVOLVED in the enhanced user-specified functionality:
|
362 |
'
|
363 |
Function Documentation:
|
364 |
+
For each file that contains functions functions INVOLVED in the enhanced user-specified functiionality:
|
365 |
+
\<<file name and extension>\<
|
366 |
+
For each function in the file:
|
367 |
- '<function name>':
|
368 |
- Summary: <Description of the function's purpose>
|
369 |
- Inputs: <Details of inputs and their types>
|
|
|
544 |
# Add headers and content
|
545 |
for line in documentation.splitlines():
|
546 |
try:
|
547 |
+
if line.startswith("- '") or line.startswith("<"):
|
548 |
pdf.set_font("Courier", style="B", size=12) # Bold for specific lines
|
549 |
pdf.multi_cell(0, 10, line.encode('latin-1', 'replace').decode('latin-1'))
|
550 |
elif line.startswith("Project Summary:") or line.startswith("Functionality Summary:") or \
|