project setting line count

This commit is contained in:
林万程
2023-11-16 23:33:42 +08:00
parent 1d77389b74
commit 89127e5879
18 changed files with 57 additions and 43 deletions

View File

@@ -137,7 +137,7 @@ public class JavaLangDoc extends BaseTagLangDoc<PsiDocComment> {
if (appendElementText(sb, element)) {
lineCount++;
}
if (DocFilter.lineCountOrLenOver(lineInfo.appSettings, sb, lineCount)) {
if (DocFilter.lineCountOrLenOver(lineInfo, sb, lineCount)) {
break;
}
}

View File

@@ -55,7 +55,7 @@ public class KotlinLangDoc extends BaseTagLangDoc<KDocSection> {
@Override
protected <T extends SettingsInfo> String descDoc(@NotNull T lineInfo, @NotNull KDocSection kDocSection) {
@NotNull String content = kDocSection.getContent();
return DocFilter.cutDoc(content, lineInfo.appSettings, false);
return DocFilter.cutDoc(content, lineInfo, false);
}
@Override
@@ -64,7 +64,7 @@ public class KotlinLangDoc extends BaseTagLangDoc<KDocSection> {
@NotNull List<KDocTag> tags = kDocSection.findTagsByName(name);
for (@NotNull KDocTag tag : tags) {
@NotNull String content = tag.getContent();
@NotNull String cutDoc = DocFilter.cutDoc(content, lineInfo.appSettings, false);
@NotNull String cutDoc = DocFilter.cutDoc(content, lineInfo, false);
tagStrBuilder.append(cutDoc);
}
}