You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<preface>
<title></title>
<literallayout class="monospaced">Indented in adoc
literallayout in db</literallayout>
<screen>Listing in adoc
screen in db</screen>
<informaltable frame="all" rowsep="1" colsep="1">
<tgroup cols="2">
<colspec colname="col_1" colwidth="50*"/>
<colspec colname="col_2" colwidth="50*"/>
<tbody>
<row>
<entry align="left" valign="top"><simpara>1</simpara></entry>
<entry align="left" valign="top"><simpara>2</simpara></entry>
</row>
<row>
<entry align="left" valign="top"><literallayout class="monospaced">Indented in adoc
literallayout in db</literallayout></entry>
<entry align="left" valign="top"><screen>Listing in adoc
screen in db</screen></entry>
</row>
</tbody>
</tgroup>
</informaltable>
</preface>
Run this command:
pandoc.exe -s doc.db -o output.docx
Open output.docx in Word:
See how:
Line breaks are missing for literallayout block in the table, while they are preserved for literallayout block outside the table and for screen block in the table
literallayout block in the table has "Compact" style, while literallayout block outside the table and all other blocks have "Source Code" style
PS I discovered this issue while converting from AsciiDoc to Word via DocBook. literallayout block is generated by asciidoctor from the indented code block. screen block is generated from [listing] block. Here is the source adoc file, if you are interested:
Indented in adoc
literallayout in db
outside the table
----
Listing in adoc
screen in db
outside the table
----
|===
| 1 | 2
a|
Indented in adoc
literallayout in db
inside the table
a|----
Listing in adoc
screen in db
inside the table
----
|===
Generated with the following command:
asciidoctor -d book -s --backend docbook --out-file doc.db input.adoc
The text was updated successfully, but these errors were encountered:
Take this
doc.db
file:Run this command:
Open
output.docx
in Word:See how:
literallayout
block in the table, while they are preserved forliterallayout
block outside the table and forscreen
block in the tableliterallayout
block in the table has "Compact" style, whileliterallayout
block outside the table and all other blocks have "Source Code" stylePS I discovered this issue while converting from AsciiDoc to Word via DocBook.
literallayout
block is generated byasciidoctor
from the indented code block.screen
block is generated from[listing]
block. Here is the sourceadoc
file, if you are interested:Generated with the following command:
The text was updated successfully, but these errors were encountered: