"Lex Trotman" ha scritto nel messaggio news:CAKhWKDOZiLaarB7r5jQMyt=W9aPkCWh=5mz+j-3gc4bcje_...@mail.gmail.com...

Sounds like the document probably sets tabsize and source-highlighter,
setting on the command line overrides the document, but the document
overrides the configuration file.

Cheers
Lex

nope, all articles starts as follows and no other attribute definitions are in it after the main title

   :encoding: UTF-8
   :lang: it
   :menuid: project-notes
   :toc:
   :toclevels: 4

   Project Notes
   =============

if I add 'tabsize' and 'source-highlighter' in the documents they take effect, the same happens if I do NOT put them in the document (like in the above example) and call AsciiDoc command with attributes on command line

aschiidoc -a tabsize=4 -a source-highlighter=pygments -o C:\my-project\Docs\my-file.html C:\my-project\AsciiDoc\src\my-file.asciidoc

There are no AsciiDoc configuration files where sources text documents reside (in the example C:\my-project\AsciiDoc\src directory).

I wish to have the configuration file C:\my-project\AsciiDoc\prj\my-project.conf (or asciidoc.conf, not in the 'src' directory but in 'prj' directory, so not in the same directory as source file) with

   [miscellaneous]
   tabsize=4

   [attributes]
   source-higlighter=pygments

and call the AsciiDoc command with

asciidoc -f C:\my-project\AsciiDoc\prj\my-project.conf -o C:\my-project\Docs\my-file.html C:\my-project\AsciiDoc\src\my-file.asciidoc

the result is that the value of 'tabsize' is '8' and the value of 'source-higlighter' is 'source-highlight', the default. The definitions in my-project.conf are ignored (not all attributes are ignored, putting 'icons=' or 'linkcss=' in 'attributes' section, or any other attribute definition they take effects, I not tested all attributes, though).

I don't care about source-highlighter now I replaced it with another filter, only tabsize is important


--
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/asciidoc.
For more options, visit https://groups.google.com/d/optout.

Reply via email to