]> git.lyx.org Git - lyx.git/blobdiff - src/lyxrc.C
ws changes only
[lyx.git] / src / lyxrc.C
index 0d45db36034bda73990532419ead9c0620b20d92..b59080a5c17873ddbd2943d11350b41b6d708d96 100644 (file)
@@ -8,10 +8,6 @@
 
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation "lyxrc.h"
-#endif
-
 #include <fstream>
 #include <iomanip>
 #include <iostream>
@@ -28,6 +24,7 @@
 #include "support/LAssert.h"
 #include "support/userinfo.h"
 #include "converter.h"
+#include "format.h"
 #include "gettext.h"
 #include "lyxlex.h"
 
@@ -266,9 +263,9 @@ void LyXRC::setDefaults() {
        // should be moved from the LyXRC class).
        use_gui = true;
        pdf_mode = false;
+
        user_name = lyx::user_name();
-       
+
        user_email = lyx::user_email();
 
        if (user_email.empty())
@@ -1112,7 +1109,7 @@ int LyXRC::read(string const & filename)
                        if (lexrc.next())
                                user_email = lexrc.getString();
                        break;
+
                case RC_LAST: break; // this is just a dummy
                }
        }
@@ -1284,7 +1281,7 @@ void LyXRC::output(ostream & os) const
                os << "\\user_name \"" << user_name << "\"\n";
 
        case RC_USER_EMAIL:
-               os << "\\user_email " << user_email << "\n";
+               os << "\\user_email \"" << user_email << "\"\n";
 
        case RC_SHOW_BANNER:
                if (show_banner != system_lyxrc.show_banner) {