如何同時刪除多餘的空格
- 開啟選項
- 貼上文字
- 複製結果
Copied text contains extra spaces (consecutive spaces). This often happens when copying from PDFs, emails and web pages. "Remove extra spaces" in Remove and Tidy Line Breaks in Text tidies them together with line breaks.
步驟
- Paste text in the "Paste text" field.
- Under "Tidying method", tick "Remove extra spaces".
- If needed, also choose "Remove all line breaks" or "Keep paragraphs (blank lines)".
- Check "After tidying".
- Copy with "Copy result".
When spaces creep in
- PDFs insert spaces to even out line widths
- Email quotations add indentation spaces
- Spaces used for formatting on web pages are included in the copy
- Full-width and half-width spaces are mixed
What gets tidied
- Consecutive blanks (spaces)
- Blanks at the start and end of lines
Combining the steps
- "Remove all line breaks" or "Keep paragraphs (blank lines)"
- "Remove extra spaces"
Choose both and line breaks and spaces are tidied.
Japanese text
Japanese needs no spaces between words. Extra blanks can generally be deleted.
English text
English needs one space between words. "Remove extra spaces" merges consecutive spaces into one.
About full-width spaces
If full-width spaces (used for indentation and so on) are mixed in, aligning them first with the full-width/half-width conversion tool makes tidying easier.
示例
Text copied from a PDF had consecutive spaces here and there. Tidied with "Remove extra spaces" and it became easier to read.
Common stumbling blocks
- Indentation blanks remain: full-width spaces may be treated as a different character. Convert first.
- Needed spaces vanished too: in English, check that spaces between words remain.
- The look did not change: there may have been no extra blanks to begin with.
Frequently asked questions
Are tab characters removed too?
They may be treated as blanks. Check in the result.
小結
Tidy line breaks and blanks together. Handy as the finishing touch on copied text.
使用「刪除和整理文字中的換行」(免費)搭配使用的工具
- 文字數統計(用於求職申請表和報告):統計文字的字數、行數和稿紙張數。
- 從 PDF 提取文字:提取 PDF 中的文字,用於複製或儲存。
- 全形、半形、平假名、片假名互相轉換:全形與半形、平假名與片假名互相轉換。