简体   繁体   中英

How to do word break in Ascii Doc?

I am writing documentation in Ascii Doc style (AsciiDocFX GUI, but I suppose it is invalid to topic) and I am having a problem.

When I create a table and then input a long word with no spaces inside of cell , the word is not split into multiple lines, it is overlapping cell next to it.

Is there some way how to fix this problem?

Here is source code from ascii doc

[[EXAMPLE_TABLE]]
[cols="4,3,5,7",width="100%",options="header","autowidth"]
|============================
s|Function s| Parameter s| Value                        s| Description
.3+^.^|toLongWorddddddddddd  |Command         |AnotherLongWord     |Some description with spaces
|Parameter   |Value                      |...
|Parameter   |Value                      |...
|============================

Here is the output (image snipped from exported pdf file):

Final goal is simple - to have nice-looking table.


Note:

When I export this document to html file, the table is fine, but it is not able to be printed out properly. I need the pdf for management..

Long story short,

I asked a guy who is working with AsciiDoc for a year and he said, that it is simply not possible. AsciiDoc framework doesn't support this possibility.

The only solution is to split the long word into multiple smaller words by spaces. :(

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM