>>>>> "Bruce" == Bruce Momjian <[EMAIL PROTECTED]> writes:
Bruce> I am wondering why LyX uses the non-wrapping space ~ in
Bruce> TeX-style areas?
I am not sure I understand what you mean? Could you send the original
lyx file and the faulty output you get?
Bruce> I understand in LyX-Code blocks that using the ~ prevents
Bruce> wrapping and forces the text to appear exactly as you enter it.
Yes.
Bruce> However, when you are doing a paragraph, and have a few words
Bruce> of typewriter output set in TeX-style, the tex will not allow a
Bruce> linebreak inside the TeX-style area because of the use of ~.
That's where I stop to understand ;) It does not seem to me that TeX
style uses ~. Unless I am really stupid (which is very possible), the
part of code that you change is _not_ triggered in TeX style:
} else if (font.latex() == LyXFont::OFF) {
! if (font.family() == LyXFont::TYPEWRITER_FAMILY) {
file += '~';
Bruce> OK, here is a patch that does what I needed. It uses ~ for
Bruce> LyX-Code environment, but spaces for Tex-Code in other
Bruce> environments. The test is to compare the current environment to
Bruce> LyX-Code, and do the ~ only in those cases.
Testing explicitely for the name of the environment is certainly not a
good idea. However, once we get to know what the actual problem is,
we'll certainly manage to find a fix.
JMarc