Skip to content

Commit

Permalink
opt: beautify the output of dict server
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyifang committed Dec 8, 2024
1 parent 72f6759 commit d0498e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dict/dictserver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,8 @@ class DictServerArticleRequest: public Dictionary::DataRequest
}

if ( lsc >= leadingSpaceCount && lsc > firstLeadingSpaceCount ) {
//extra space
resultStr.append( " " );
resultStr.append( line.trimmed() );
}
else {
Expand Down

0 comments on commit d0498e5

Please sign in to comment.