Sorry to necro an old thread, but I'm going crazy over here... I've been trying to create screen tips with line breaks in them (not on an image map, just using the title attribute on an image). The funny thing is, on 2021 R2 I'm getting exactly the opposite behaviour from what bgilliland has described here.
My variable has the following code (created in Notepad++):
- Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<CatapultVariableSet>
<Variable
Name="LineBreak"
Comment="Line break for tooltips"
EvaluatedDefinition="
-">
-</Variable>
</CatapultVariableSet>
I've added it to the the image like so:
- Code: Select all
<img src="10441.jpg" title="Top: Puzzle [%=Punctuation.LineBreak%]Bottom: Missing piece" />
And the result I get is this:
Screentip with variable.png
So the variable approach doesn't seem to be working for me. But wait, if I just use the Unicode characters in my title...
- Code: Select all
<img src="10441.jpg" title="Top: Puzzle 
-Bottom: Missing piece" />
It works!
Screentip with CRLF.png
(At least it does for the WebHelp output I'm using - still doesn't seem to work for HTML5. )
But... I need to bring all of these screentips into Lingo for translation. Unfortunately if they just use the CRLF characters, Lingo helpfully converts them to line breaks in the XLF file, which will not come through to the translated output.
So I would really prefer to use the variable if I can, but I just can't make it work the way it apparently did for the OP 4 years ago. Maybe Madcap changed how whitespace is handled in variables? Does any one have any ideas? I am
en aporia.
You do not have the required permissions to view the files attached to this post.
in hoc foro dolorem ipsum amamus, consectimur, adipisci volumus.