Don't replace 'code' tag inside a possible 'pre'.

Partially fixes #4728.
This commit is contained in:
John Preston 2018-05-25 21:02:44 +03:00
parent 544aef19b4
commit c23ec41622
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ const std::map<QString, std::vector<int>> &TagFinishIndices() {
{ kTagBold, { kTagBoldIndex, kTagCodeIndex, kTagPreIndex } },
{ kTagItalic, { kTagItalicIndex, kTagCodeIndex, kTagPreIndex } },
{ kTagCode, { kTagCodeIndex, kTagPreIndex } },
{ kTagPre, { kTagCodeIndex, kTagPreIndex } },
{ kTagPre, { kTagPreIndex } },
};
return cached;
}