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;
}
/// 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()
*/
* 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.
*/
void catInit()
{
static bool init_done = false;
- if (init_done)
+ if (init_done)
return;
init_done = true;
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")
{
}
{
catInit();
char_type c;
- if (!is_.get(c))
+ if (!is_.get(c))
return;
switch (catcode(c)) {
}
}
- 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();
} // anonymous namespace
-bool tex2lyx(string const & infilename, FileName const & outfilename,
+bool tex2lyx(string const & infilename, FileName const & outfilename,
string const & encoding)
{
if (outfilename.isReadableFile()) {
easyParse(argc, argv);
- if (argc <= 1)
+ if (argc <= 1)
error_message("Not enough arguments.");
try {
// 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;
}
// 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";
handle_ert(os, "\\", parent_context);
else if (*it == '$')
handle_ert(os, "$", parent_context);
- else
+ else
os << *it;
}
handle_ert(os, "\\end{" + name + "}",
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;