Forum Bugs

Break long UNC path names at backslash characters

Johann
Wanted to break our long UNC path names in hyperlinks at backslash "\" characters.

None of the following worked:
a, a * { prince-text-replace: "\\" "\\\200B"}
a, a * { prince-text-replace: "\5c" "\5c\200B"}


Finally, I was successful using the '_' character:
a, a * { prince-text-replace: "_" "_\200B"}


Bug, or maybe wrong syntax with the backslash characters?

- - -
Johann

mikeday
This worked for me:
<html>
<head>
<style>
p { prince-text-replace: "\\" "\\\21" }
</style>
</head>
<body>
<p>
what\happens\here?
</p>
</body>
</html>

It should put an exclamation mark after each backslash.
Johann
Thanks, Mike!

Of course, you are right! I tried to be smart and wrote two declarations (one for UNC paths and one for URL's):

a, a * { prince-text-replace: "\\" "\\\200B"}
a, a * { prince-text-replace: "/" "/\200B"}


I forgot, that the latter declaration always takes precedence :roll: !

the correct solution was:
a, a * { prince-text-replace: "\\" "\\\200B" "/" "/\200B" }

- - -
Johann