writer2latex surrounds quotes by braces which we skip to avoid useless ERT.
I broke this in
25fe87e5 which made Parser::next_next_token() not recognize
that it needed to parse one more token. If we had a unit test for the Parser
class it would probably have detected that. Now we have at least a test for
the special quote.
return dummy;
// If tokenize_one() has not been called after the last get_token() we
// need to tokenize two more tokens.
return dummy;
// If tokenize_one() has not been called after the last get_token() we
// need to tokenize two more tokens.
- if (pos_ >= tokens_.size()) {
+ if (pos_ >= tokens_.size())
+ tokenize_one();
+ if (pos_ + 1 >= tokens_.size())
- if (pos_ + 1 >= tokens_.size())
- tokenize_one();
- }
return pos_ + 1 < tokens_.size() ? tokens_[pos_ + 1] : dummy;
}
return pos_ + 1 < tokens_.size() ? tokens_[pos_ + 1] : dummy;
}
+\begin_layout Standard
+latex2writer outputs quotes in braces like
+\begin_inset Quotes ers
+\end_inset
+
+. We swallow the, but this was one broken (bug 8903).
+\end_layout
+
\begin_layout Section
Mathematics
\begin_inset Index idx
\begin_layout Section
Mathematics
\begin_inset Index idx
A sub\textsubscript{sc\emph{ript}} and super\textsuperscript{script
with $a^2+b^2=c^2$ math}.
A sub\textsubscript{sc\emph{ript}} and super\textsuperscript{script
with $a^2+b^2=c^2$ math}.
+latex2writer outputs quotes in braces like {\textquoteright}. We swallow the,
+but this was one broken (bug 8903).
+
\section{Mathematics\index{Mathematics}}
\section{Mathematics\index{Mathematics}}