如何用libreoffice Write中的段落标记替换所有新线

发布于 2025-01-18 02:41:08 字数 320 浏览 5 评论 0原文

我已经使用 LibreOffice 多年了。但是,我并不经常需要用段落替换换行符。每次我这样做时,我都会进入包含正则表达式的 LibreOffice 页面并完成它,并花费相当多的时间才能正确完成。

今天,当我进行一般搜索时,我在 Webrosis 这很容易。由于我在进行搜索时首先访问 stackoverflow,因此我决定在这里将 Webrosis 的想法和该特定问题的解决方案整合在一起。

I've used LibreOffice for years. However, I do not tend to need to replace a newline with a paragraph very often. Every time I do, I go to the LibreOffice page with the regular expressions and work through it and take quite a bit of time to get it right.

Today, as I did a general search I find an idea on Webrosis that makes it easy. Since I come to stackoverflow first when I do a search, I decide to pull together the Webrosis idea and the solution for this particular issue together here.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

·深蓝 2025-01-25 02:41:08
  • 打开格式标记 (ctrl-F10)
  • 按 Enter 键,然后复制段落标记
  • 打开搜索和替换 (ctrl-H)
  • 在搜索框中输入 \n
  • 在其他选项下打开正则表达式
  • 按全部查找
  • 关闭搜索框和所有将选择换行符
  • 按 ctrl-v,您复制的段落标记将替换所有换行符
  • Turn on Formatting Marks (ctrl-F10)
  • Press Enter and then copy the paragraph mark
  • Open search and replace (ctrl-H)
  • In the search box enter \n
  • Under other options turn on regular expressions
  • Press Find All
  • Close the search box and all the newlines will be selected
  • Press ctrl-v and the paragraph mark you copied will replace all the newlines
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文