mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Fix substitution for $$Contents.
The second argument here is the length of the string to replace, not the position of the final character.
This commit is contained in:
parent
d142ab94ef
commit
6b97f2c075
@ -200,7 +200,7 @@ string const doSubstitution(InsetExternalParams const & params,
|
||||
|
||||
size_t const pos = result.find("$$Contents(\"");
|
||||
size_t const end = result.find("\")", pos);
|
||||
result.replace(pos, end + 2, contents);
|
||||
result.replace(pos, end + 2- pos, contents);
|
||||
}
|
||||
|
||||
return result;
|
||||
|
Loading…
Reference in New Issue
Block a user