setindentskip
setindentskip |
Purpose
Synopsis
procedure setindentskip(doc:xmldoc, skip:integer)
Arguments
|
doc
|
Document to use
|
|
skip
|
Number of spaces to add for each indentation (at least 1; default is 2)
|
Example
This code reads in a document and displays its contents on screen applying automatic formatting with single space indentation and increased line length.
declarations
DB: xmldoc
end-declarations
! Reading data from an XML file
load(DB, "refexample.xml")
! Set indentation mode for XML output (default after load: MANUAL)
setindentmode(DB, XML_AUTO)
! Set smaller indentation skip than default
setindentskip(DB, 1)
! Increase default line length
setlinelen(DB, 80)
! Display document contents on screen
save(DB, "")
Further information
When the document is formatted automatically (see
setindentmode) the number of spaces specified by this procedure is added to the current margin each time a new indent step is created.
Related topics
Module
