+1999-11-30 Kayvan A. Sylvan <kayvan@satyr.sylvan.com>
+
+ * src/ImportNoweb.C (documentclass): fixed bounds for substr
+ operation, yielding correct results for the reLyX command.
+
1999-12-01 Lars Gullik Bjønnes <larsbj@lyx.org>
* src/support/filetools.C (ExpandPath): removed an over eager
{
string result = "literate-article"; // Default
-#warning If you use literate programming you should verify that this works
- // This method has been rewritten to use ifstream, but since I
- // don't use literate programming myself I am unable to check
- // this correclty. (Lgb)
ifstream ifs(file.c_str());
if (!ifs) return "nofile"; // Should not happen!
if (p != string::npos) {
p = line.find('{', p);
string::size_type q = line.find('}', p);
- result = "literate-" + line.substr(p, q - p);
+ result = "literate-" + line.substr(p + 1, q - p - 1);
break;
}
}