mc-next-class

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
bneuha
Jr. Propeller Head
Posts: 6
Joined: Wed May 19, 2010 8:34 am
Location: Colorado Springs, Colorado

mc-next-class

Post by bneuha »

Hi All,

Say that you have a tag and class called p.Foo, and you want the next tag when you press Return to be a plain old p, does anyone know if that's supported?

The reverse situation would look like this:
p
{
mc-next-tag: p;
mc-next-class: Foo;
}

But, how to go the other way?
p.Foo
{
mc-next-tag: p;
mc-next-class: ??????;
}

If you omit mc-next-class, you get another p.Foo when you press Return. It needs some mechanism to reset the class.

Thanks,
bneuha
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: mc-next-class

Post by LTinker68 »

Just out of curiosity, what happens if you insert a space instead of leaving it blank? Or try putting two single quotes without a space between them, so it would be mc-next-class: ; or mc-next-class:'';.
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
JohnB
Propeller Head
Posts: 50
Joined: Mon Nov 09, 2009 12:17 pm

Re: mc-next-class

Post by JohnB »

Hi -

mc-next-tag only works when you are going from one style to another, e.g. from Heading to Paragraph. As you found, it does not work if you are going from a class to its root style (e.g. from p.Note to p). There was no workaround when I addressed it with tech support.

- john
bneuha
Jr. Propeller Head
Posts: 6
Joined: Wed May 19, 2010 8:34 am
Location: Colorado Springs, Colorado

Re: mc-next-class

Post by bneuha »

Thank you for the ideas. After some experimentation, the following syntax appears to work:

mc-next-class: ' ';

(that's tick-space-tick; and you need the space)

bneuha
NorthEast
Master Propellus Maximus
Posts: 6426
Joined: Mon Mar 05, 2007 8:33 am

Re: mc-next-class

Post by NorthEast »

bneuha wrote:Thank you for the ideas. After some experimentation, the following syntax appears to work:

mc-next-class: ' ';

(that's tick-space-tick; and you need the space)

bneuha
Note that that enters a class with a space; e.g.

Code: Select all

<p class=" ">
But I guess the space won't cause a problem.
JohnB
Propeller Head
Posts: 50
Joined: Mon Nov 09, 2009 12:17 pm

Re: mc-next-class

Post by JohnB »

bneuha wrote:Thank you for the ideas. After some experimentation, the following syntax appears to work:

mc-next-class: ' ';

(that's tick-space-tick; and you need the space)

bneuha
Interesting, works for me. Thanks for posting.

- john
Post Reply