Juergen Spitzmueller wrote:
> >   I agree. It doesn't make sense for an inline element to have paragraphs
> > inside, because then it would not be an inline element. :-)
>
> I think all we need to do is to supress LFUN_BREAKPARAGRAPH,
> LFUN_BREAKPARAGRAPHKEEPLAYOUT and LFUN_BREAKPARAGRAPH_SKIP ins
> InsetCharstyle::priv_dispatch (and maybe post a message to the minibuffer).
> I'll have a look.

The attached patch does just this (without the minibuffer message, for which I 
haven't found an easy solution).
José, are your latest changes in ::docbook still necessary when paragraph 
breaks are disabled? (sorry for this ping-pong game).

Jürgen
Index: insets/insetcharstyle.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/insets/insetcharstyle.C,v
retrieving revision 1.24
diff -u -r1.24 insetcharstyle.C
--- insets/insetcharstyle.C	31 Oct 2004 12:30:26 -0000	1.24
+++ insets/insetcharstyle.C	1 Nov 2004 08:18:13 -0000
@@ -158,6 +158,12 @@
 			else
 				InsetText::priv_dispatch(cur, cmd);
 			break;
+		// supress these
+		// paragraph breaks not allowed in charstyle insets!
+		case LFUN_BREAKPARAGRAPH:
+		case LFUN_BREAKPARAGRAPHKEEPLAYOUT:
+		case LFUN_BREAKPARAGRAPH_SKIP:
+			break;
 
 		default:
 			InsetCollapsable::priv_dispatch(cur, cmd);

Reply via email to