https://bugs.kde.org/show_bug.cgi?id=524249

            Bug ID: 524249
           Summary: No preview of image if directory name has a space in
                    between
    Classification: Applications
           Product: ghostwriter
      Version First 26.04.3
       Reported In:
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Created attachment 195143
  --> https://bugs.kde.org/attachment.cgi?id=195143&action=edit
Image showing rendering fail if the local directory path has a space in the
middle

DESCRIPTION
In a markdown document a image can be inserted by using the construct 
![image](PathToImageFile)

The PathToImageFile can be a http(s) link or a absolute path to a local
directory. However if the image path in the local directory has a space in
between, for example like the one given below
      /var/tmp/A Directory/
then the image does not load. Please see the attached screenshot with the name,
"KDEGhostWriterBug.jpg" for more details. It has two images inserted. One image
is in a directory which has a space in its name and the other image is a
directory where there is no space in the middle.

If the directory name has no spaces in between then it works.

STEPS TO REPRODUCE
1. Create a new markdown document or open a new markdown document in
ghostwriter.
2. Try an insert an image, but with the caveat that the path should have a
directory which has a space or multiple spaces in the name. To insert the image
use the following
![image](AbsolutePathToTheImageFileWithExtension)


OBSERVED RESULT
The image is NOT rendered if the path has a directory which has a space in the
middle.
The image is rendered if the path DOES NOT have a directory which has a space
in the middle.
Please see the attached screenshot with the name, "KDEGhostWriterBug.jpg" for
reference. It has two images inserted in a markdown document. The first image
is in a directory which has a space in its name and the second image is in a
directory where there is no space in the middle. The first image is not
rendered. While the second image is rendered.

EXPECTED RESULT
Even if there is a space in the path of a local directory name, the image
should be rendered. 

SOFTWARE/OS VERSIONS
Operating System (available in the Info Center app, or by running `kinfo` in a
terminal window): Linux 7.1.6
KDE Plasma Version: 6.7.4
KDE Frameworks Version: 6.28.0
Qt Version: 6.11.1

ADDITIONAL INFORMATION
This is a bug and not a new feature request

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to