From d0498e52426b9801d2c8263d4da4c3e892e60215 Mon Sep 17 00:00:00 2001 From: YiFang Xiao Date: Sun, 8 Dec 2024 17:07:23 +0800 Subject: [PATCH] opt: beautify the output of dict server --- src/dict/dictserver.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dict/dictserver.cc b/src/dict/dictserver.cc index 6de66ce16..7ca2aad5c 100644 --- a/src/dict/dictserver.cc +++ b/src/dict/dictserver.cc @@ -624,6 +624,8 @@ class DictServerArticleRequest: public Dictionary::DataRequest } if ( lsc >= leadingSpaceCount && lsc > firstLeadingSpaceCount ) { + //extra space + resultStr.append( " " ); resultStr.append( line.trimmed() ); } else {