提交 e536b004 authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

GenerateHelp should not truncate description on period used in quotes

上级 7cf262c5
...@@ -41,10 +41,21 @@ public class GenerateHelp { ...@@ -41,10 +41,21 @@ public class GenerateHelp {
for (int i = 0; i < columnCount; i++) { for (int i = 0; i < columnCount; i++) {
String s = rs.getString(1 + i); String s = rs.getString(1 + i);
if (i == 3) { if (i == 3) {
int dot = s.indexOf('.'); int len = s.length();
if (dot >= 0) { int end = 0;
s = s.substring(0, dot + 1); for (; end < len; end++) {
char ch = s.charAt(end);
if (ch == '.') {
end++;
break;
}
if (ch == '"') {
do {
end++;
} while (end < len && s.charAt(end) != '"');
}
} }
s = s.substring(0, end);
} }
row[i] = s; row[i] = s;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论