Export to PDF is cutting off long Code Blocks for certain Formats

Steps to reproduce

  1. Write a long code block into an Obsidian Note:
# This is shell code block format.
./catalogImport username=admin password=admin server_url=http://localhost:8080/catalogImport import_file=C:\Users\Alan\Downloads\ThisIsATestDirectory\ThisIsASubDirectory\ThisIsToMakeALongDirectoryPath\01_TheFileIwantToImport.zip
# This is python code block format.
./catalogImport username=admin password=admin server_url=http://localhost:8080/catalogImport import_file=C:\Users\Alan\Downloads\ThisIsATestDirectory\ThisIsASubDirectory\ThisIsToMakeALongDirectoryPath\01_TheFileIwantToImport.zip
# This is YAML code block format.
./catalogImport username=admin password=admin server_url=http://localhost:8080/catalogImport import_file=C:\Users\Alan\Downloads\ThisIsATestDirectory\ThisIsASubDirectory\ThisIsToMakeALongDirectoryPath\01_TheFileIwantToImport.zip
# This is default code block format.
./catalogImport username=admin password=admin server_url=http://localhost:8080/catalogImport import_file=C:\Users\Alan\Downloads\ThisIsATestDirectory\ThisIsASubDirectory\ThisIsToMakeALongDirectoryPath\01_TheFileIwantToImport.zip
  1. Export to PDF using the in-built feature.

  2. Open PDF and view content of code blocks.

Expected result

Code block should be formatted in such a way where there is no loss of a long command for any code block format type.

Actual result

For any code block format aside from the default code block, the text is being cut out in the event that the command is too long. It is not being cut to the next line.

Environment

  • Operating system: Windows 10
  • Obsidian version:> v0.15.15
  • Plugins: Disabled

Additional information