Bug#867664: pandoc: Include doctype header in generated docbook output?

2017-07-09 Thread Jonas Smedegaard
Quoting Petter Reinholdtsen (2017-07-08 12:31:26)
> 
> Package: pandoc
> Version: 1.12.4.2~dfsg-1
> 
> The DocBook output generated by pandoc is missing the XML header
> documenting the format.  Is there a reason for this?
> 
> Instead of getting this result,
> 
> % printf "header\n===\n\nbody\n"|pandoc -o - -t docbook -
> 
>   header
>   
> body
>   
> 
> %
> 
> I suggest to return something like this:
> 
> % printf "header\n===\n\nbody\n"|pandoc -o - -t docbook -
> 
>"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd;>
> 
>   header
>   
> body
>   
> 
> %
> 
> This allow XML validators to check the content.

It seems Pandoc supports this already.

Perhaps you need to pass this option: --standalone

 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private


signature.asc
Description: signature
___
Pkg-haskell-maintainers mailing list
Pkg-haskell-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-haskell-maintainers

Bug#867664: pandoc: Include doctype header in generated docbook output?

2017-07-08 Thread Petter Reinholdtsen

Package: pandoc
Version: 1.12.4.2~dfsg-1

The DocBook output generated by pandoc is missing the XML header
documenting the format.  Is there a reason for this?

Instead of getting this result,

% printf "header\n===\n\nbody\n"|pandoc -o - -t docbook -

  header
  
body
  

%

I suggest to return something like this:

% printf "header\n===\n\nbody\n"|pandoc -o - -t docbook -

http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd;>

  header
  
body
  

%

This allow XML validators to check the content.

-- 
Happy hacking
Petter Reinholdtsen

___
Pkg-haskell-maintainers mailing list
Pkg-haskell-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-haskell-maintainers