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 Simple template) to adoc conversion gap: source code #160

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

Comments

@Intelligent2013
Copy link
Contributor

Source: #144, #149

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

Current docx->adoc conversion result:

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

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

Expected adoc:

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

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

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

The reason - the source code has style 'Example':

<w:p w:rsidR="00000000" w:rsidRDefault="00275A4E">
	<w:pPr>
		<w:pStyle w:val="Example"/>
		...
	</w:pPr>
	...
	<w:r>
		<w:t>puts "Hello, world."</w:t>
	</w:r>
@Intelligent2013 Intelligent2013 added the question Further information is requested label Jul 17, 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
None yet
Development

No branches or pull requests

1 participant