mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Compare commits
No commits in common. "0beb790a6a19458f3dcf1b17e7796533410c363d" and "0a7585403832c114fd2d084363aee98c3234058e" have entirely different histories.
0beb790a6a
...
0a75854038
@ -287,13 +287,8 @@ void InsetRef::latex(otexstream & os, OutputParams const & rp) const
|
||||
getFormattedCmd(data, label, prefix, use_refstyle, use_caps);
|
||||
os << fcmd;
|
||||
if (use_refstyle && use_plural)
|
||||
os << "[s]";
|
||||
if (contains(label, ' '))
|
||||
// refstyle bug: labels with blanks need to be grouped
|
||||
// otherwise the blanks will be gobbled
|
||||
os << "{{" << label << "}}";
|
||||
else
|
||||
os << '{' << label << '}';
|
||||
os << "[s]";
|
||||
os << '{' << label << '}';
|
||||
}
|
||||
else if (cmd == "labelonly") {
|
||||
docstring const & ref = getParam("reference");
|
||||
@ -303,7 +298,7 @@ void InsetRef::latex(otexstream & os, OutputParams const & rp) const
|
||||
docstring prefix;
|
||||
docstring suffix = split(ref, prefix, ':');
|
||||
if (suffix.empty()) {
|
||||
LYXERR0("Label `" << ref << "' contains no `:' separator.");
|
||||
LYXERR0("Label `" << ref << "' contains no `:' separator.");
|
||||
os << ref;
|
||||
} else {
|
||||
os << suffix;
|
||||
|
@ -1237,7 +1237,7 @@ docstring const escape(docstring const & lab)
|
||||
for (char_type const c : lab) {
|
||||
if (c >= 128 || c == '=' || c == '%' || c == '#' || c == '$'
|
||||
|| c == '}' || c == '{' || c == ']' || c == '[' || c == '&'
|
||||
|| c == '\\')
|
||||
|| c == '\\' || c == ' ') // refstyle doesn't support spaces
|
||||
{
|
||||
// Although char_type is a 32 bit type we know that
|
||||
// UCS4 occupies only 21 bits, so we don't need to
|
||||
|
Loading…
Reference in New Issue
Block a user