xiaoyifang / goldendict-ng

The Next Generation GoldenDict
https://xiaoyifang.github.io/goldendict-ng/
Other
1.71k stars 95 forks source link

feature , optimize the display of dict.org(dict server) #1959

Open xiaoyifang opened 5 days ago

xiaoyifang commented 5 days ago

image

  1. remove extra lines.
  2. join the lines together Rough guess:can based on the leading whitespace count. If the next line's leading whitespace is greater (or equal )than the current line, remove \r\n and whitespace and join them.