Skip to content

Commit

Permalink
minor corrections to PyQT and test-markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachery Elledge committed Mar 22, 2024
1 parent ff18098 commit 8f78891
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions PyQt.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ def read_and_analyze_file():
filepath, _ = QFileDialog.getOpenFileName(filter="Markdown Files (*.md);;All Files (*)")

#Option 1 prints the whole path.@auth ZE
#file_path = filepath, _
file_path = filepath, _

# Option 2 just gives you the filename itself @auth ZE
file_path = os.path.basename(filepath)
file_name = os.path.basename(filepath)


# If a has been selected in the GUI...
Expand Down Expand Up @@ -97,6 +97,8 @@ def read_and_analyze_file():

# Output the identified section to the GUI with newlines between each section
report += "" # Initialize the variable to build the report string
report += str(file_name) + "\n\n"
report += "-------------------------------\n"
report += str(file_path) + "\n\n" # Add the file name to the report
report += "-------------------------------\n"
for i, section in enumerate(sections):
Expand Down
2 changes: 1 addition & 1 deletion test-markdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi mi eros, maximus
* test Italics 1 *
* test Italics 2 *

###Under tests lists
### Under tests lists

- item 1
* item 2
Expand Down

0 comments on commit 8f78891

Please sign in to comment.