Martin Vermeer wrote:

Hmmm, I see the ERT calls its own version of resetParagraphsFont().  I
believe it can be removed so it uses the InsetCollapsable one. Saves a
few lines. (I think I planned on doing this, but forgot.)

That doesn't impact this patch, though, does it? Here I'm using the ForceLTR for opening an extra \L{ when necessary; but I don't want such an environment to be opened for ERT. That's what this exception here is for. This has nothing to do with resetParagraphsFont() AFAIU.


+                        // ERT is an exception, since it doesn't go to output
+                        && inset->lyxCode() != ERT_CODE))
            && running_font.isRightToLeft()) {
                if (running_font.language()->lang() == "farsi")
                        os << "\\beginL{}";

- Martin


Reply via email to