]> git.lyx.org Git - features.git/commitdiff
Whitespace only
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 14 Dec 2012 11:30:08 +0000 (12:30 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 14 Dec 2012 11:33:39 +0000 (12:33 +0100)
src/tex2lyx/Context.cpp
src/tex2lyx/Context.h
src/tex2lyx/Parser.cpp
src/tex2lyx/table.cpp
src/tex2lyx/tex2lyx.cpp
src/tex2lyx/text.cpp

index ecf6a14199824cbc49fa6219009a66aa8d34c219..0eb1fa137d93c6da5463c8fb572e9e872e50e7c9 100644 (file)
@@ -96,7 +96,7 @@ Context::Context(bool need_layout_,
 Context::~Context()
 {
        if (!par_extra_stuff.empty())
-               cerr << "Bug: Ignoring par-level extra stuff '" 
+               cerr << "Bug: Ignoring par-level extra stuff '"
                     << par_extra_stuff << '\'' << endl;
 }
 
index 0ed5f59b2fa315be5be2ab52ec7413f5de46c044..cf006f3222964c6aa50d7d2f725045f3253d5924 100644 (file)
@@ -113,7 +113,7 @@ public:
        /// Add extra stuff if not already there
        void add_extra_stuff(std::string const &);
 
-       /*! 
+       /*!
         *  Add paragraph-level extra stuff if not already there. This
         *  will be reset at the next check_layout()
         */
index 01f14b8dc9da9f3e031e37f964f6060c0eb35ff0..010e9dd7c987d3353b1cd1b11b70bb28c5562697 100644 (file)
@@ -3,7 +3,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author André Pönitz 
+ * \author André Pönitz
  *
  * Full author contact details are available in file CREDITS.
  */
@@ -27,7 +27,7 @@ CatCode theCatcode[256];
 void catInit()
 {
        static bool init_done = false;
-       if (init_done) 
+       if (init_done)
                return;
        init_done = true;
 
@@ -164,8 +164,8 @@ Parser::Parser(idocstream & is)
 
 
 Parser::Parser(string const & s)
-       : lineno_(0), pos_(0), 
-         iss_(new idocstringstream(from_utf8(s))), is_(*iss_), 
+       : lineno_(0), pos_(0),
+         iss_(new idocstringstream(from_utf8(s))), is_(*iss_),
          encoding_latex_("utf8")
 {
 }
@@ -539,7 +539,7 @@ void Parser::tokenize_one()
 {
        catInit();
        char_type c;
-       if (!is_.get(c)) 
+       if (!is_.get(c))
                return;
 
        switch (catcode(c)) {
index 79781c74951dd5ef46d426a2fd87982082f12e64..751020bb74b2b6552237f1e552768552ee605cf7 100644 (file)
@@ -734,13 +734,13 @@ void parse_table(Parser & p, ostream & os, bool is_long_tabular,
                        }
                }
 
-               else if (t.cat() == catSpace 
+               else if (t.cat() == catSpace
                         || t.cat() == catNewline
-                        || t.cat() == catLetter 
-                        || t.cat() == catSuper 
-                        || t.cat() == catSub 
-                        || t.cat() == catOther 
-                        || t.cat() == catActive 
+                        || t.cat() == catLetter
+                        || t.cat() == catSuper
+                        || t.cat() == catSub
+                        || t.cat() == catOther
+                        || t.cat() == catActive
                         || t.cat() == catParameter)
                        os << t.cs();
 
index dc19f78a7bc2dc51fa8de17446e02f3443855459..ceb4e92ed3d0cad4ce5e7069bdc33eb645fd253f 100644 (file)
@@ -925,7 +925,7 @@ bool tex2lyx(FileName const & infilename, ostream & os, string const & encoding)
 } // anonymous namespace
 
 
-bool tex2lyx(string const & infilename, FileName const & outfilename, 
+bool tex2lyx(string const & infilename, FileName const & outfilename,
             string const & encoding)
 {
        if (outfilename.isReadableFile()) {
@@ -1002,7 +1002,7 @@ int main(int argc, char * argv[])
 
        easyParse(argc, argv);
 
-       if (argc <= 1) 
+       if (argc <= 1)
                error_message("Not enough arguments.");
 
        try {
@@ -1059,13 +1059,13 @@ int main(int argc, char * argv[])
        // Read the encodings table.
        FileName const symbols_path = libFileSearch(string(), "unicodesymbols");
        if (symbols_path.empty()) {
-               cerr << "Error: Could not find file \"unicodesymbols\"." 
+               cerr << "Error: Could not find file \"unicodesymbols\"."
                     << endl;
                return EXIT_FAILURE;
        }
        FileName const enc_path = libFileSearch(string(), "encodings");
        if (enc_path.empty()) {
-               cerr << "Error: Could not find file \"encodings\"." 
+               cerr << "Error: Could not find file \"encodings\"."
                     << endl;
                return EXIT_FAILURE;
        }
index ef334e1b7f53a8eb10601bf4d678b6d9ed3951cb..f406869153eddb30f1ca4fdf8bab2a04ecc4dfb4 100644 (file)
@@ -1430,7 +1430,7 @@ void parse_environment(Parser & p, ostream & os, bool outer,
                                // This hack must be removed once bug 8049 is fixed!
                                if ((it + 1 != et) && (it + 2 != et || *it2 != '\n'))
                                        os << "\n\\end_layout\n\\begin_layout Verbatim\n";
-                       } else 
+                       } else
                                os << *it;
                }
                os << "\n\\end_layout\n\n";
@@ -1471,7 +1471,7 @@ void parse_environment(Parser & p, ostream & os, bool outer,
                                        handle_ert(os, "\\", parent_context);
                                else if (*it == '$')
                                        handle_ert(os, "$", parent_context);
-                               else 
+                               else
                                        os << *it;
                        }
                        handle_ert(os, "\\end{" + name + "}",
@@ -3625,8 +3625,8 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
                                              context, "\\lang",
                                              context.font.language, lang);
                }
-               
-               else if (prefixIs(t.cs(), "text") 
+
+               else if (prefixIs(t.cs(), "text")
                         && is_known(t.cs().substr(4), preamble.polyglossia_languages)) {
                        // scheme is \textLANGUAGE{text} where LANGUAGE is in polyglossia_languages[]
                        string lang;