拆分记事本中的每一行。 [英] Split every line in notepad.

查看:117
本文介绍了拆分记事本中的每一行。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好先生,

我将文件从docx转换为文本,但所有行都是concat。

如何拆分文本文件中的每一行?请帮帮我?

Hello Sir,
I converted my file from docx to text but all line are concat.
How to split every line in text file?Please help me?

推荐答案

我们无法回答这个问题 - 当您转换文档时,您丢弃了换行符,或者认为Word文本打破了一行页面的右边缘 - 它没有,这些是虚拟线条,仅在格式化屏幕或打印机的文档时出现。它们不存在于DOCX文件中,因为此类中断的位置取决于布局:流动的圆形图像或不同的字体大小。



如果你想要你的文本版本中的换行符,你必须自己计算它们应该在哪里,或者你自己的文本文件中的行长度(在Word的文本段落内)。
We can't answer that - the chances are that when you converted your document, you discarded the line breaks, or assumed that Word text "broke" a line at the right edge of the page - it doesn't, those are "virtual lines" which only occur when formatting the document for the screen or printer. They do not exist in the DOCX file because the position of such breaks is dependant on the layout: flowing round images, or different font sizes for example.

If you want line breaks in your text version, you will have to work out where they should be manually, or by "line length" in the text file yourself (within the paragraphs of text from Word).


这篇关于拆分记事本中的每一行。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆