PY-24476 ReStructuredTest Support Plugin incorrectly reports warning on title length

This commit is contained in:
Ekaterina Tuzova
2017-07-10 13:40:47 +03:00
parent 892852a3bd
commit 55deb53fdd
@@ -86,7 +86,7 @@ public class RestTitle extends RestElement {
public String getUnderline() {
final String text = getNode().getText().trim();
if (text.length() < 2) return null;
final char adorn = text.charAt(text.length()-2);
final char adorn = text.charAt(text.length()-1);
final CharacterIterator it = new StringCharacterIterator(text);
int start = 0;
for (char ch = it.last(); ch != CharacterIterator.DONE; ch = it.previous()) {