Hi, here's the patch that gives feedback if the user wants to insert two spaces at the same place, as it is in 1.0.1 already. Someone please commit this to the cvs version? Regards Daniel -- PGP Key fingerprint = 3D 98 9E D2 00 B6 E0 9D 7E B9 77 23 17 E2 11 6A http://cgi4all.alabanza.com/glasatelier/
--- /home/dnaber/lyxbak/text.C Sun Mar 21 18:32:41 1999 +++ text.C Sun Mar 21 19:28:53 1999 @@ -24,6 +24,7 @@ #include "lyxscreen.h" #include "painter.h" #include "BufferView.h" +#include "minibuffer.h" // $Id: text.C,v 1.27 1998/10/20 13:10:29 larsbj Exp $ @@ -34,6 +35,8 @@ // ale070405 extern int bibitemMaxWidth(Buffer const *, Painter &, const class LyXFont &); +// dnaber, 1999-03-21 +extern MiniBuffer *minibuffer; // Returns the width of the character in this paragraph at // a certain position @@ -1309,6 +1312,7 @@ * blank at the end of a row we have to force * a rebreak.*/ + minibuffer->Set(_("You cannot type two spaces this way. +Please read the Tutorial.")); if (cursor.pos == RowLast(cursor.row) && !IsLineSeparatorChar(c)) cursor.row->fill = -1; /* force rebreak */ @@ -1323,8 +1327,13 @@ || (cursor.pos == 0 && !(cursor.par->Previous() && cursor.par->Previous()->footnoteflag - == LyXParagraph::OPEN_FOOTNOTE))) + == LyXParagraph::OPEN_FOOTNOTE))) { + if (cursor.pos == 0 ) + minibuffer->Set(_("You cannot insert a space at the +beginning of a paragraph. Please read the Tutorial.")); + else + minibuffer->Set(_("You cannot type two spaces this +way. Please read the Tutorial.")); goto out; + } } else if (IsNewlineChar(c)) { if (cursor.par->FirstPhysicalPar() == cursor.par && cursor.pos <= BeginningOfMainBody(cursor.par))