Copy link to clipboard
Copied
After importing html files in my Robohelp HTML project (using Robohelp 8), i have problems with
line breaks. This is the text in my "original" file:
<li style="font-size: 10pt;"><p class="Absatz_AV" style="margin-left: 11.75pt;"><font style="font-family: 'Courier New'; font-weight: bold;" face="Courier New">NewTSConnection</font> creates a new object for a connection to the <?rh-udv_start name="SERVER" ?>%SERVER%<?rh-udv_end ?>.</p></li>
After importing, the text has line breaks:
<li style="font-size: 10pt;"><p class="Absatz_AV" style="margin-left: 11.75pt;"><font
style="font-family: 'Courier New'; font-weight: bold;" face="Courier New">NewTSConnection</font>
creates a new object for a connection to the <?rh-udv_start name="SERVER" ?>%SERVER%<?rh-udv_end ?>
.</p></li>
This results in a dispensable blank:
NewTSConnection creates a new object for a connection to the %SERVER% .
How can I avoid this line breaks or the dispensable blank?
Thanks a lot for all suggestions.
Lisa
Copy link to clipboard
Copied
I created a variable called SERVER with a value of %SERVER%, then pasted in your code.
Editors will display the code in different ways so all that matters is the end result. By "dispensable blank" I assume you are referring to the space between the variable value and the full stop. Are you sure the space is not part of the variable?
See www.grainge.org for RoboHelp and Authoring tips
Copy link to clipboard
Copied
By "dispensable blank" I assume you are referring to the space between the variable value and the full stop.
Yes, my problem is the space between the variable and the full stop. I am sure, the space is not part of the variable.
Content of rhvariable.apj:
<variable>
<name>SERVER</name>
<value>%SERVER%</value>
</variable>
I have already changed the value of the variable, but the problem is still the same.
Copy link to clipboard
Copied
As I said, all I did was create the same variable and paste in what you posted.
I guess trying the same yourself in a new project with the default CSS would be the next thing.
See www.grainge.org for RoboHelp and Authoring tips
Copy link to clipboard
Copied
Peter, thank you for your answers.
I created a new project and imported my files. The problem is the same. When I copy the code of the "original file" in a existing topic, everything is o.k. It´s the Import function, which causes the problem.
I try to explain my problem in other words:
I get the files from my translater. The files are all right, there is no space between the variable and the full stop.
But after importing the files in my project, (using the Import function in Pod Project Manager), there is a space between the variable and the full stop. I have to controll and edit every new topic I imported.
Copy link to clipboard
Copied
Can you send me one of the files that you would import?
See the Contact page on my site.
See www.grainge.org for RoboHelp and Authoring tips
Copy link to clipboard
Copied
I imported your file and got the same problem.
Then I created a topic in another RoboHelp project with a variable followed by a full stop. Same problem.
Thus it is not anything to do with what your translater has given you.
The bug is that if an HTM file is imported containing a variable followed by a full stop, a space that was not in the source is added between the variable and the full stop.
Please follow this link and report the bug.
http://www.Adobe.com/cfusion/mmform/index.cfm?name=wishform&product=38
See www.grainge.org for RoboHelp and Authoring tips
Copy link to clipboard
Copied
Thank you very much for your help, Peter!
I reported this bug.
Copy link to clipboard
Copied
Isn't this extra space as a variable the same bug that is noted in the thread below? Anytime topics are imported with variables at the end of a sentence (before punctuation) an extra space is inserted. Sometimes it happens just when a topic is opened that had already been cleaned. It can get annoying.
Copy link to clipboard
Copied
I'm wondering if you have gotten anywhere with resolving this issue, because I'm experiencing the same problem
with many help projects after upgrading. What's worse is I went in and manually remove the spaces before periods and commas after a variable and it removed the puntuation altogether!
It looks like it's only happening when the variable followed by the punctuation falls at the end of the line in the HTML code.
I submitted a bug as suggested, but I'm wondering if there has been any followup from Adobe on the issue or if anyone has any other insights into how to fix the problem.
Thanks.
Natasha