On 08/06/2009 12:12 PM, rgheck wrote:
On 08/06/2009 10:51 AM, Jürgen Spitzmüller wrote:
rgheck wrote:
Since this is more or less cosmetic, I'd rather postpone it to 1.6.5.


OK.

But I'm still waiting for the tex2lyx/module fix ;-)

Sorry, I'll get to this shortly. Been busy tiling my kitchen.

Here is a patch along the lines we discussed earlier. All it does is have tex2lyx treat the DefaultModule tag as if it were an Input tag. This hardly solves all existing problems, but it does solve the biggest one.

OK?

Richard


Index: src/TextClass.cpp
===================================================================
--- src/TextClass.cpp   (revision 30873)
+++ src/TextClass.cpp   (working copy)
@@ -347,6 +347,9 @@
                        readOutputType(lexrc);
                        break;
 
+#ifdef TEX2LYX
+               case TC_DEFAULTMODULE:
+#endif
                case TC_INPUT: // Include file
                        if (lexrc.next()) {
                                string const inc = lexrc.getString();
@@ -493,6 +496,7 @@
                        break;
                }
 
+#ifndef TEX2LYX
                case TC_DEFAULTMODULE: {
                        lexrc.next();
                        string const module = lexrc.getString();
@@ -500,6 +504,7 @@
                                default_modules_.push_back(module);
                        break;
                }
+#endif
 
                case TC_PROVIDESMODULE: {
                        lexrc.next();

Reply via email to