XWPF POI 边框左段落跟随文本位置
How to change Border Left Paragraph, but the border follow text position, example if text indent so the border will indent too. Or text format bullet and number, the border will follow second line too.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
无论您在 Word GUI 的 Word 文档视图中看到段落标记 ¶,该段落都会结束并开始新的段落。因此,所有红色左边框线都是不同单段落的左边框线。
因此,您所看到的与以下完整示例相同:
所以任何地方都没有魔法。
图片中编号文本的出现是对文字处理的滥用。编号文本的第一行位于单独的段落中。下面的段落被设置为左缩进,以保证其正确性。但事实不应该如此。编号的文本属于一起。这就是为什么它也应该在一个段落中。那么缩进也会自动正确。人们不应通过插入不正确的段落分隔符来滥用文字处理。
Wherever you see a paragraph mark ¶ in Word document view in Word GUI a paragraph ends and a new one starts. So all your red left border lines are left border lines of different single paragraphs.
So what you see is the same as in following complete example:
So no magic anywhere.
The appearance of the numbered texts in your picture is a misusing of word processing. There the first line of the numbered text is in a separate paragraph. And the following paragraph is set left indented as much that it stands correct. But that should not be so. The text which is numbered belongs together. That's why it also should be in one paragraph. Then the indention also is correct automatically. One should not misusing word processing by inserting not correct paragraph breaks.