mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-21 23:09:40 +00:00
Revert "Automatically adjust tab stop width"
The fix is more complicated than that This reverts commit bb16efc07ef76246616aacea7bb40ac260b26beb.
This commit is contained in:
parent
bb16efc07e
commit
d828728cc9
@ -899,13 +899,10 @@ Row TextMetrics::tokenizeParagraph(pit_type const pit) const
|
|||||||
FontMetrics const & fm = theFontMetrics(text_->labelFont(par));
|
FontMetrics const & fm = theFontMetrics(text_->labelFont(par));
|
||||||
int const wid = fm.width(par.layout().labelsep);
|
int const wid = fm.width(par.layout().labelsep);
|
||||||
row.addMarginSpace(i, wid, *fi, par.lookupChange(i));
|
row.addMarginSpace(i, wid, *fi, par.lookupChange(i));
|
||||||
} else if (c == '\t') {
|
} else if (c == '\t')
|
||||||
// Make tab stop size adjust automatically depending on char number
|
row.addSpace(i, theFontMetrics(*fi).width(from_ascii(" ")),
|
||||||
int tabStopWidth = 4;
|
|
||||||
std::string s = std::string(tabStopWidth - i % tabStopWidth, ' ');
|
|
||||||
row.addSpace(i, theFontMetrics(*fi).width(from_ascii(s)),
|
|
||||||
*fi, par.lookupChange(i));
|
*fi, par.lookupChange(i));
|
||||||
} else if (c == 0x2028 || c == 0x2029) {
|
else if (c == 0x2028 || c == 0x2029) {
|
||||||
/**
|
/**
|
||||||
* U+2028 LINE SEPARATOR
|
* U+2028 LINE SEPARATOR
|
||||||
* U+2029 PARAGRAPH SEPARATOR
|
* U+2029 PARAGRAPH SEPARATOR
|
||||||
|
Loading…
x
Reference in New Issue
Block a user