- A ticket has already been logged for this issue with the Flare Development team (#117014) -- however, I'm looking for any and all creative workarounds pending a MadCap solution.
- At MadWorld 2016, I had some help from some true Flare experts, but none of the proposed solutions have worked to date (listed below).
- Thanks in advance!
Our Guides in PDF format rely heavily on customers being able to copy and paste lengthy installation and configuration code scripts. Lengthy = wrapped onto three (3) or more lines. (I use a custom style for these scripts; however, I've established that the style used has no bearing on the issue.) When you copy the lines of code from the PDF output to a command prompt (or to a text editor such as Notepad or Wordpad), the following occurs:
- Wherever the lines break in the PDF, spaces are added to the code text; and
- If a line breaks immediately following a dash (-) in the code text, the dash is interpreted as a hyphen and is removed.
This issue is not limited to Flare -- same thing occurs when you convert the same text from Word, or Notepad, to PDF.
At this point, my only solution is to have customers copy each code script into a text editor to manually edit the text (removing the extra spaces, adding the dashes back in, etc.), check for any other wonky formatting issues, and then copy the revised code script into the command console. Not a satisfactory solution, even in the short term.
Solutions that unfortunately did not yield success:
- Convert each code script into a URL with an empty landing location, courtesy of doc_guy (bonus points for creativity!).
- Make each code script a live link to a landing location where customers can copy the correct, unbroken code (would have worked, but not practical).