mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +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