Edit: I'm using Flare 9.1.2.
My project has hundreds of parameter descriptions that I have implemented as snippets for easier change control, because the same descriptions may be used in several places over a number of documents. Some of these snippet descriptions are several paragraphs long and contain other snippets.
In both PDF and HTML output, I would like lists of parameters to be displayed like this:
parameter_name (style p.ListHead)
Parameter description goes here... (style p.ListBody, should be clearly indented from ListHead)
As the Flare XML Editor does not allow applying a paragraph style to a block snippet, I have applied the p.ListBody style (default medium) to the snippet blocks manually in the text editor. This looks just like it should in the XML editor in both print and web layout, as well as in PDF output, but the HTML output loses the indentation (i.e., I assume it is not applying the p.ListBody style at all), which makes the end result less clear to read. (The p.ListBody style indents just fine in HTML for regular non-snippety paragraph text.)
Here is the XML code used:
Code: Select all
<h1>Test topic</h1>
<p>Testing snippets:</p>
<p class="ListHead">log section (style p.ListHead)</p>
<p class="ListBody">This paragraph is formatted in style p.ListBody which should be clearly indented compared to p.ListHead. Multi-paragraph snippet inserted as block and p.ListBody style applied manually. The parameter descriptions are snippets within the larger snippet.</p>
<p class="ListBody">
<MadCap:snippetBlock src="../Resources/Snippets/Configuration parameters/Test snippet_log.flsnp" />
</p>
<p class="ListHead">log section</p>
<p class="ListBody">Same snippet inserted as text instead of block does not work at all: <MadCap:snippetText src="../Resources/Snippets/Configuration parameters/Test snippet_log.flsnp" /></p>
And here is the HTML output with all indentation lost in the block snippet sections of the text:
As can be seen here, inserting the snippet as text does not work at all for multi-paragraph snippets. The paragraph division is lost, as are the snippets embedded within (the log_path etc. descriptions).
So my question is really this: Is there any way I can make a manually applied paragraph style stick to a block snippet in HTML output? And if not, any hints on other ways I could present a similar list of parameters in a clear, reader-friendly, easily updatable way? I would like to avoid tables if I can, because the parameter descriptions can get quite long and unwieldy for a table cell.
Thanks in advance,
Sarianna
