abap 删除前导空格_如何在Microsoft Word中删除行上的前导和尾随空格

abap 删除前导空格

abap 删除前导空格

00_lead_image_removing_spaces

If you’ve worked with too many documents in which others have used spaces to align text and images, you know it can be very time consuming to manually remove the extra spaces from the beginning and end of each line.

如果您处理了太多文档,其中其他文档使用空格来对齐文本和图像,那么您会知道手动删除每行开头和结尾的多余空格会非常耗时。

Word does not provide a straightforward way to remove extra spaces on lines. You’ve probably been manually deleting the spaces by repeatedly pressing the delete or backspace keys. However, we’ll show you a quick and easy way to remove the extra spaces from multiple lines at once, saving you time.

Word没有提供直接的方法来删除行上的多余空格。 您可能已经通过反复按Delete或Backspace键来手动删除空格。 但是,我们将向您展示一种快速简便的方法,一次可以删除多行中的多余空格,从而节省了时间。

To begin, we want to see where the spaces are, so we need to show non-printing characters. To do this, make sure the Home tab is active on the ribbon and click the “Show/Hide ¶“ button in the Paragraph section. Spaces are shown as dots.

首先,我们想看看空格在哪里,因此我们需要显示非打印字符 。 为此,请确保功能区上的“主页”选项卡处于活动状态,然后单击“段落”部分中的“显示/隐藏¶”按钮。 空格显示为点。

01_showing_non_printing_characters

Select the lines that contain spaces you want to delete and center the lines by pressing Ctrl+E, or clicking the Center button in the Paragraph section of the Home tab. Notice that the spaces on the lines are now gone.

通过按Ctrl + E或单击“主页”选项卡的“段落”部分中的“居中”按钮,选择包含要删除的空格的行并将它们居中。 注意,行上的空格现在消失了。

02_centering_text

Now, you can format the lines the way you want without the extra spaces. Here we left-aligned the selected lines and now they’re lined up neatly on the left.

现在,您可以按需要的方式设置线条的格式,而无需多余的空格。 在这里,我们将选定的行左对齐,然后将它们整齐地排列在左侧。

03_spaces_are_gone

You can also delete extra spaces on lines in .txt and .rtf files this way. Simply open the files in Word and follow the steps outlined in this article.

您也可以通过这种方式删除.txt和.rtf文件中行上的多余空格。 只需在Word中打开文件,然后按照本文概述的步骤操作即可。

翻译自: https://www.howtogeek.com/291375/how-to-remove-leading-and-trailing-spaces-on-lines-in-microsoft-word/

abap 删除前导空格

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值