mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-13 17:20:55 +00:00
* src/LaTeX.C
(LaTeX::scanLogFile): remove \0 characters inserted by MikTeX before further processing (LaTeX::deplog): likewise git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13738 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
46173d31e5
commit
735707cc5e
14
src/LaTeX.C
14
src/LaTeX.C
@ -540,6 +540,13 @@ int LaTeX::scanLogFile(TeXErrors & terr)
|
||||
|
||||
string token;
|
||||
while (getline(ifs, token)) {
|
||||
// MikTeX sometimes inserts \0 in the log file. They can't be
|
||||
// removed directly with the existing string utility
|
||||
// functions, so convert them first to \r, and remove all
|
||||
// \r's afterwards, since we need to remove them anyway.
|
||||
token = subst(token, '\0', '\r');
|
||||
token = subst(token, "\r", "");
|
||||
|
||||
lyxerr[Debug::LATEX] << "Log line: " << token << endl;
|
||||
|
||||
if (token.empty())
|
||||
@ -760,7 +767,12 @@ void LaTeX::deplog(DepTable & head)
|
||||
|
||||
string token;
|
||||
getline(ifs, token);
|
||||
token = rtrim(token, "\r");
|
||||
// MikTeX sometimes inserts \0 in the log file. They can't be
|
||||
// removed directly with the existing string utility
|
||||
// functions, so convert them first to \r, and remove all
|
||||
// \r's afterwards, since we need to remove them anyway.
|
||||
token = subst(token, '\0', '\r');
|
||||
token = subst(token, "\r", "");
|
||||
if (token.empty())
|
||||
continue;
|
||||
|
||||
|
@ -37,6 +37,8 @@ What's new
|
||||
using the AMS-specific commands \xleftarrow, \xrightarrow or
|
||||
array constructs split, gathered, aligned and alignedat (bug 2149).
|
||||
|
||||
- Don't get confused by 0-Characters in MikTeX logfiles anymore
|
||||
|
||||
* Math editor:
|
||||
|
||||
- Fix metrics of AMS array environments like bmatrix, vmatrix etc. (bug 2036)
|
||||
|
Loading…
Reference in New Issue
Block a user