Removed limitations on number of indexes.
This commit is contained in:
parent
27d3b68ff4
commit
88966598b8
2 changed files with 3 additions and 4 deletions
|
|
@ -565,8 +565,8 @@ bool Parser::processCustomIndex(uint16 index) {
|
||||||
if (url.isEmpty()) {
|
if (url.isEmpty()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (url.startsWith("internal:index") && url.back().isDigit()) {
|
if (url.startsWith("internal:index")) {
|
||||||
const auto customIndex = uint16(url.back().unicode() - '0');
|
const auto customIndex = uint16(url.back().unicode());
|
||||||
// if (customIndex != index) {
|
// if (customIndex != index) {
|
||||||
url = QString();
|
url = QString();
|
||||||
_linksIndexes.push_back(customIndex);
|
_linksIndexes.push_back(customIndex);
|
||||||
|
|
|
||||||
|
|
@ -43,8 +43,7 @@ TextWithEntities Link(const QString &text, const QString &url) {
|
||||||
}
|
}
|
||||||
|
|
||||||
TextWithEntities Link(const QString &text, int index) {
|
TextWithEntities Link(const QString &text, int index) {
|
||||||
Expects(index > 0 && index < 10);
|
return Link(text, QString("internal:index") + QChar(index));
|
||||||
return Link(text, QString("internal:index") + QChar('0' + index));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
TextWithEntities PlainLink(const QString &text) {
|
TextWithEntities PlainLink(const QString &text) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue