줄 앞뒤의 공백을 정리하는 방법
- 붙여넣기
- 공백 정리
- 복사
If a copied list has invisible spaces at the start or end of lines, even identical content is judged as different lines. "Remove spaces at the start and end of lines" in Remove Duplicate Lines and Sort a List takes them out.
순서
- Paste the list into "Before tidying (one per line)".
- Tick "Remove spaces at the start and end of lines".
- If needed, also choose "Remove duplicate lines" and "Remove empty lines".
- Check "After tidying" and copy with "Copy result".
Why spaces get in
- Copied from a PDF or web page
- A space was in an Excel cell
- Slipped in through manual input
- Indented for layout
Kinds of spaces
- Half-width space
- Full-width space
- 탭
Some are hard to see.
Why combine with duplicates
"Yamada Taro" and "Yamada Taro " (trailing space) are treated as different lines and not seen as duplicates. Removing the spaces first makes them the same line so the duplicate can be removed.
Spaces between characters
To remove spaces inside a line, use a text editor with find-and-replace or the tool that tidies full-width and half-width.
알맞은 경우
- Tidying before matching a roster
- Tidying before pasting into Excel
- Tidying a keyword list
- Preprocessing before a duplicate check
예
Merging two rosters found no duplicates. Trailing spaces were the cause; after choosing "Remove spaces at the start and end of lines", 15 duplicate lines were found.
Common stumbling blocks
- Duplicates remain after removing spaces: full-width/half-width differences.
- Spaces between characters remain: only the start and end of lines are targeted.
- Invisible characters: special spaces may remain.
Frequently asked questions
Are full-width spaces removed too?
Yes. Spaces at the start and end of lines, including full-width, are removed.
요약
Remove surrounding spaces before a duplicate check. Invisible spaces hide duplicates.
“중복된 줄 제거 및 목록 정렬” 사용하기 (무료)함께 쓰면 좋은 도구
- 텍스트의 줄바꿈 제거 및 정리: PDF 등에서 복사한 텍스트의 줄바꿈을 정리합니다.
- 글자 수 세기 (지원서·리포트용): 텍스트의 글자 수, 줄 수, 원고지 매수를 셉니다.
- 전각·반각·히라가나·가타카나 변환: 전각/반각 및 히라가나/가타카나를 변환합니다.