Windows network path names (with double backslash) are not formatted properly
Asked by Aurik Sarker:

Basically, if a line begins with double backslash (as is the case with Windows paths on a shared drive), it gets split awkwardly.

Try adding this text to a confluence page

\\\\Drive\\Folder\\Path\\Path\\Path\\Path\\Path\\Path\\Path\\Path\\Path\\Path\\Path\\Path\\Path\\Path\\Path\\Path\\Path\\Path\\Path\\Path\\Path\\Path\\Path\\Path\\Path\\Path\\

Notice that confluence inserts a new line in between the first two backslashes, causing the first line to have only one character

When forward slashes are used instead of backslashes, the formatting is correct - i.e. there is no weird split

//Drive/Folder/Path/Path/Path/Path/Path/Path/Path/Path/Path/Path/Path/Path/Path/Path/Path/Path/Path/Path/Path/Path/Path/Path/Path/Path/Path/Path/

**The formatting using double backslashes should match the formatting with forward slashes**


Answers:
author: Shawn Doyle - ReleaseTEAM
body: Have you tried putting in a code block? That should not change the formating.

comments: author: Aurik Sarker
body: This is what happens when I use code formatting (top) vs the code snippet element (bottom)

![Screenshot 2024-03-22 at 1.12.36?AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/313731iCDF0E11821E1FC8F/image-size/large?v=v2&px=999 "Screenshot 2024-03-22 at 1.12.36?AM.png")

The code snippet does prevent the formatting issue, but is not ideal to use within contexts. For example, in my documents, paths are referenced inline with text as well as in bulleted lists. In these cases, the "code formatting" option is preferable to use, and where the formatting issue occurs.


author: Aurik Sarker
body: Basically, I don't think the formatting should be like this - why would a backslash end up on its own line?

The formatting with forward slashes makes a lot more sense.


author: Shawn Doyle - ReleaseTEAM
body: I just tested this on my cloud instance and not seeing the same behavior.

![conf_paths.png](https://community.atlassian.com/t5/image/serverpage/image-id/314287iF804F2F8A6454D68/image-size/large?v=v2&px=999 "conf_paths.png")

So going back to the drawing board.. what addons are in play on your site? something is messing with you.


author: Aurik Sarker
body: The one I know we have installed is the Swagger add-on for inline LaTeX equations, but I dont think that is coming into play here. We have any other plugins installed (though I may be wrong).

It is strange that you dont see the same issue, but I have seen this issue even outside of our Confluence. We can replicate the issue in this forum itself, as demonstrated here

\\\\Drive\\Folder\\Path\\Path\\Path\\Path\\Path\\Path\\Path\\Path\\Path\\Path\\Path\\Path\\Path\\Path\\Path\\Path\\Path\\Path\\Path\\Path\\Path\\Path\\Path\\Path\\Path\\Path\\


author: Shawn Doyle - ReleaseTEAM
body: This displays correctly for me. Can you try with a different browser or in incognito mode?

![path_display.png](https://community.atlassian.com/t5/image/serverpage/image-id/314619i1ADA9E93619E6BEE/image-size/large?v=v2&px=999 "path_display.png")


author: Aurik Sarker
body: Ahh, I have been using Firefox.

When I switched to Safari, the issue did not appear.

Is there any way to prevent this issue without having to switch browsers? Any settings that can be changed?


author: Shawn Doyle - ReleaseTEAM
body: I don't believe so, it's something in Firefox that is causing it.


Tags: cloud

confluence-cloud