mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-25 05:55:34 +00:00
Revert "validate encodable characters in href inset (#8357)"
This reverts commit 1ea66bb65f
.
The method latexString does not exits in branch.
This commit is contained in:
parent
1ea66bb65f
commit
c5d56d260b
@ -15,7 +15,6 @@
|
||||
|
||||
#include "Buffer.h"
|
||||
#include "DispatchResult.h"
|
||||
#include "Encoding.h"
|
||||
#include "Format.h"
|
||||
#include "FuncRequest.h"
|
||||
#include "FuncStatus.h"
|
||||
@ -29,8 +28,6 @@
|
||||
#include "support/gettext.h"
|
||||
#include "support/lstrings.h"
|
||||
|
||||
#include "frontends/alert.h"
|
||||
|
||||
using namespace std;
|
||||
using namespace lyx::support;
|
||||
|
||||
@ -188,17 +185,7 @@ void InsetHyperlink::latex(otexstream & os,
|
||||
(pos = name.find('~', i)) != string::npos;
|
||||
i = pos + 1)
|
||||
name.replace(pos, 1, sim);
|
||||
pair<docstring, docstring> name_latexed =
|
||||
runparams.encoding->latexString(name, runparams.dryrun);
|
||||
name = name_latexed.first;
|
||||
if (!name_latexed.second.empty()) {
|
||||
// issue a warning about omitted characters
|
||||
// FIXME: should be passed to the error dialog
|
||||
frontend::Alert::warning(_("Uncodable characters"),
|
||||
bformat(_("The following characters that are used in the href inset are not\n"
|
||||
"representable in the current encoding and therefore have been omitted:\n%1$s."),
|
||||
name_latexed.second));
|
||||
}
|
||||
|
||||
} // end if (!name.empty())
|
||||
|
||||
if (runparams.moving_arg)
|
||||
|
@ -89,8 +89,6 @@ What's new
|
||||
- Fix bug that Elsevier documents became uncompilable when using refstyle for
|
||||
cross-references.
|
||||
|
||||
- Fix encoding problems in hyperlink name field (bug 8357).
|
||||
|
||||
- Fixed the layout file for scientific articles published by the American
|
||||
Psychological Association (APA) (bug 8187).
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user