mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 10:18:50 +00:00
Fix the output of a single dash in xhtml.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30004 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
f5b0b57e50
commit
30a12853b8
@ -2402,19 +2402,21 @@ void Paragraph::simpleLyXHTMLOnePar(Buffer const & buf,
|
||||
if (style.pass_thru)
|
||||
os.put(c);
|
||||
else if (c == '-') {
|
||||
docstring str;
|
||||
int j = i + 1;
|
||||
if (j < size() && d->text_[j] == '-') {
|
||||
j += 1;
|
||||
if (j < size() && d->text_[j] == '-') {
|
||||
os << from_ascii("—");
|
||||
str += from_ascii("—");
|
||||
i += 2;
|
||||
} else {
|
||||
os << from_ascii("–");
|
||||
str += from_ascii("–");
|
||||
i += 1;
|
||||
}
|
||||
}
|
||||
else
|
||||
os << c;
|
||||
str += c;
|
||||
os << str;
|
||||
} else
|
||||
os << html::escapeChar(c);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user