Retaining spaces/formatting of code blocks

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
oceanclub
Sr. Propeller Head
Posts: 277
Joined: Thu Oct 10, 2013 4:45 am
Location: Dublin

Retaining spaces/formatting of code blocks

Post by oceanclub »

Previously I had set up a <div> CSS style for code blocks, and also a separate <div> element to use for indentation.

However, a issue highlighted by internal/external clients was that those indents weren't not retained if the code was copied from Flare PDF output.

Instead I tried to just use a pre tag with code inside that.

However, when I copy and paste text from a PDF rendered from flare, the line breaks aren't retained; so for example, the following:

Code: Select all

- input_type: log
  paths:
    - $CATALINA/logs/*
Becomes:

Code: Select all

- input_type: log paths: - $CATALINA/logs/*
Any help appreciated,

Paul
Post Reply