- // We do a case independent comparison, like search_kw
- // does.
- if (compare_ascii_no_case(token, endtoken) != 0) {
- string tmpstr = getString();
- if (firstline) {
- unsigned int i = 0;
- while (i < tmpstr.length()
- && tmpstr[i] == ' ') {
- ++i;
- prefix += ' ';
- }
- firstline = false;
- lyxerr[Debug::PARSER] << "Prefix = `" << prefix
- << '\'' << endl;
- }
-
- if (!prefix.empty()
- && prefixIs(tmpstr, prefix)) {
- tmpstr.erase(0, prefix.length() - 1);
- }
- str += frontStrip(tmpstr, "\t") + '\n';
- }
- else // token == endtoken
+ // We do a case independent comparison, like search_kw does.
+ if (compare_ascii_no_case(token, endtoken) == 0)