> Bruce> and when this text is part of a paragraph, no wrapping can
> Bruce> occur within this text. That is my problem. My patch prevents ~
> Bruce> translation for 'typewriter' mode, not TeX mode as I state.
> 
> OK, the right solution is probably to test on the FreeSpacing property
> of a layout, instead of tt font: this is the one which controls
> whether multiple consecutive spaces are allowed. Or I could add a new
> tag just for that.

Oh, that makes sense.  If you allow multiple spaces in that region, then
make those ~.  

OK, much cleaner patch attached, and it still fixes the problem.  I am a
little surprised no one else had this problem, but I guess most people
use a single typewriter-style word in a paragraph, while I have groups
of words all set in typewriter style.

Thanks.
-- 
  Bruce Momjian                        |  http://www.op.net/~candle
  [EMAIL PROTECTED]                |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026
*** ./lyx-1.0.4/src/paragraph.C.orig    Fri Oct 22 17:11:01 1999
--- ./lyx-1.0.4/src/paragraph.C Mon Oct 25 09:29:43 1999
***************
*** 2924,2930 ****
                texrow.start(this, i+1);
                column = 0;
        } else if (font.latex() == LyXFont::OFF) {
!               if (font.family() == LyXFont::TYPEWRITER_FAMILY) {
                        file += '~';
                } else {
                        file += ' ';
--- 2924,2931 ----
                texrow.start(this, i+1);
                column = 0;
        } else if (font.latex() == LyXFont::OFF) {
!               if (font.family() == LyXFont::TYPEWRITER_FAMILY &&
!                   style->free_spacing) {
                        file += '~';
                } else {
                        file += ' ';



Reply via email to