Elements show in note output in Word

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
skwpt
Propeller Head
Posts: 88
Joined: Thu Oct 01, 2015 2:39 pm

Elements show in note output in Word

Post by skwpt »

My notes look like this in word:

{b}{color #135296}Note: {/color}{/b} Text text text text

Notes appear as they should in PDF output.

I copied 'mc-auto-number-format: '{b}{color #135296}Note: {/color}{/b}' into the print section, but the output looked the same (no fix).

Here's the CSS for HTML output:

Code: Select all

p.note
{
	background-repeat: no-repeat;
	border-radius: 6px;
	padding-bottom: 10px;
	padding-right: 10px;
	padding-top: 10px;
	background-image: none;
	background-color: #d3d3d3;
	color: #000000;
	border: solid 1px #d3d3d3;
	padding-left: 12px;
	mc-auto-number-format: '{b}{color #135296}Note: {/color}{/b}';
}
And here's the CSS for print-based output:

Code: Select all

	p.note
	{
		color: #000000;
		background-color: #d3d3d3;
		border-bottom-color: #d3d3d3;
		border-left-color: #d3d3d3;
		border-right-color: #d3d3d3;
		border-top-color: #d3d3d3;
		border: solid 1px #d3d3d3;
	}

Any ideas?
__________________________________________________________________
Running Flare 2017 r2 on a MacBook Pro.
Parallels Desktop 12 hypervisor with Windows 10 VM
Nita Beck
Senior Propellus Maximus
Posts: 3672
Joined: Thu Feb 02, 2006 9:57 am
Location: Pittsford, NY

Re: Elements show in note output in Word

Post by Nita Beck »

There is a bug with Flare's Word generator such that it doesn't process the inline formatting (e.g., {b}, {color...), which comes from how the auto-number is defined in your p.note style. The solution is not to use the inline formatting. Instead, set up a span class that will apply the bold and the color, and then in the p.note style, have its auto-number set to use that span class. That should fix it.

See this post for the detailed discussion; the solution is nearer the end:
-- viewtopic.php?f=10&t=22032
Nita
Image
RETIRED, but still fond of all the Flare friends I've made. See you around now and then!
skwpt
Propeller Head
Posts: 88
Joined: Thu Oct 01, 2015 2:39 pm

Re: Elements show in note output in Word

Post by skwpt »

Thank you for the quick reply, Nita!
__________________________________________________________________
Running Flare 2017 r2 on a MacBook Pro.
Parallels Desktop 12 hypervisor with Windows 10 VM
skwpt
Propeller Head
Posts: 88
Joined: Thu Oct 01, 2015 2:39 pm

Re: Elements show in note output in Word

Post by skwpt »

I forgot to mention that Flare Support raised a ticket to track this bug for Word rendering auto-number properties: #129888.
__________________________________________________________________
Running Flare 2017 r2 on a MacBook Pro.
Parallels Desktop 12 hypervisor with Windows 10 VM
Post Reply