我想在XSL fO.中对齐下面的一段
标签:值
Be careful not to set the heap size too large, as whatever you allocate reduces the amount of memory available to the operating system and other programs, which could cause excessive paging (memory swapped back and forth between RAM and the swap disc, which will slow your system down)
具有正确的对齐和缩进。我可以用断字来创建,但缺少缩进。有人能建议的解决方案吗
你觉得这样吗?
<fo:block text-align="justify" margin-left="1.5cm">Your text here ...</fo:block>
或者,您可以将linefeed-treatment
、white-space-treatment
、whitespace-collapse
属性一起用于预格式化文本。
您可以将fo:block
放入fo:block-container
中进行背景着色和边界处理。
<fo:block margin-left="5mm" margin-right="5mm"
font-family="verdana" font-size="12pt"
space-before="5mm" space-after="5mm" keep-together="always"
linefeed-treatment="preserve" whitespace-treatment="pre" whitespace-collapse="false">
Your multiline
code here,
and more lines,
with multiple spaces on start and within
and empty lines ...
</fo:block>