Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docx (ISO Edited DIS) to adoc conversion gap: source code in example #155

Open
Intelligent2013 opened this issue Jul 7, 2022 · 0 comments
Labels
question Further information is requested

Comments

@Intelligent2013
Copy link
Contributor

Source: #144, #150

Source adoc: https://github.com/metanorma/mn-samples-iso/tree/main/sources/international-standard

ae-annex-e.adoc:

[[samplecode]]
.Sample Code
====

[source,ruby]
--
puts "Hello, world."
%w{a b c}.each do |x| <1>
  puts x
end
--
<1> This is an annotation
====

Please note that <1> This is an annotation placed outside of source code (i.e. after --).

Docx:

<w:p w14:paraId="356E1A3E" w14:textId="77777777" w:rsidR="00000000" w:rsidRDefault="00522D53">
	...
	<w:r>
		...
		<w:t>puts "Hello, world."</w:t>
	</w:r>
	<w:r>
		...
		<w:br/>
		<w:t>%w{a b c}.each do |x| &lt;1&gt;</w:t>
	</w:r>
	<w:r>
		...
		<w:br/>
		<w:t>  puts x</w:t>
	</w:r>
	<w:r>
		...
		<w:br/>
		<w:t>end</w:t>
	</w:r>
	<w:r>
		...
		<w:br/>
	</w:r>
	<w:r>
		...
		<w:br/>
		<w:t>&lt;1&gt; This is an annotation</w:t>
	</w:r>
</w:p>

Current docx->adoc result:

[[samplecode]]
.Sample Code
====

[source]
--
puts "Hello, world."
%w{a b c}.each do |x| <1>
  puts x
end

<1> This is an annotation
--
====

<1> This is an annotation as part of source code.

@Intelligent2013 Intelligent2013 added the question Further information is requested label Jul 7, 2022
@Intelligent2013 Intelligent2013 moved this to Triage in Metanorma Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant