Issue with <pre> tags in RH2017
I'm having an issue using the <pre></pre> tags in RH2017.
We have code snippets in our help topics that use multiple spaces to indent and align the code. In our language translation application, these spaces get stripped out causing the code to be one continuous line and loses all this whitespace formatting.
After some testing it was found that by using the pre tags such as in the snippet of code below, the language translation software is able to process the lines of code without stripping out the whitespace.
One issue I'm facing is when I apply the <pre> tags over the entire code snippet which, in this case, are contained within <div> tags:

It looks fine in the RoboHelp Design view:

But in RoboHelp Preview view (Ctrl+W) or when I publish the topic, RH for some reason inserts a blank line after each line in the code. Here's what it looks like after I drag my mouse over the lines of code in the browser to show the blank lines:

If I apply the <pre> tags just over the lines of code that have the whitespace I need to preserve:

In Design view, when I select the lines of code, you can see that RoboHelp has added lines of whitespace after each line of code for some reason which also show up in Preview view as well as when I publish the topic:

We have many topics that have code snippets I need to apply some technique to preserve whitespace.
Am I using the <pre> tags incorrectly or is this an issue where RoboHelp will not play nice with this tag?
Is there another <pre> tag attribute that RoboHelp is ok with that I can use to get the results I'm looking for?
Is there another method I can use to get the same results with our translation software that RoboHelp is ok with?
As always, your help and guidance is greatly appreciated!
