It is recommended to use the “.hwdoc” extension for HWDOC documents (where applicable). HWDOC is identified by the MIME type text/hwdoc
' '
(ASCII code 32, byte 0x20)'\n'
(ASCII code 10, byte 0x0A)'\t'
(ASCII code 9, byte 0x09)'_'
(ASCII code 95, byte 0x5F) e.g. “_My_SECTION1”_SUPER_SECTION
first_key 1 6 !k
_SUB_SECTION
second_key
_SECOND_SUPER_SECTION
Same document, but encoded with newline marked as '\n'
and horizontal tab marked as '\t'
:
_SUPER_SECTION\n\tfirst_key 1 6 !k\n\t_SUB_SECTION\n\t\tsecond_key\n_SECOND_SUPER_SECTION
’_SUPER_SECTION’ is a section that contains a key ‘first_key’, (with values ‘1’, ‘2’ and ‘!k’) and another section ’_SUB_SECTION’, which contains a key without values ‘second_key’. After ’_SUPER_SECTION’, there is ’_SECOND_SUPER_SECTION’, an empty section