thanks

Hussein Shafie wrote:
> Leos Literak wrote:
> 
>>shall I check them or uncheck them? I understand trim spaces
>>as create one big file with no intendation. Am I right?
> 
> 
> No. See below.
> 
> 
>>And also I dont think if Open settings shall affect Save
>>behaviour. In my eyes these are separate and even if opened
>>file didn't have any intendation
> 
> 
> True.
> 
> 
>>and you set intendation on
>>save, then save shall put intendation in saved file.
>>What do you think?
> 
> 
> True.
> 
> 
> Here is the detailed explanation:
> ---------------------------------
> 
> In the case of documents without a DTD, when the "When no DTD is being
> used, guess what spaces are not useful and trim them" toggle is checked,
> Open behavior is based on the following _heuristic_ (heuristic 1):
> 
> 1) When an element contains text other that white spaces, white spaces
> are not stripped.
> 
> 2) When an element contains other elements and white spaces, white
> spaces are stripped.
> 
> (Off course, the xml:space attribute supersedes the heuristic)
> 
> In the case of documents without a DTD, Indent (aka Save) behavior is
> based on the following heuristic (heuristic 2):
> 
> 1) An element containing text, even if white space, is formatted like a
> paragraph: not indented.
> 
> 2) An element only containing other elements is formatted like a
> structure: indented.
> 
> Of course, heuristic 2 does not work very well :-) when heuristic 1 has
> not been applied first, which is exactly the problem you have described.
> 
> 
> 
> Here are the settings I always use and that I recommend in your case:
> ---------------------------------------------------------------------
> 
> Open Tab: check "When no DTD is being used, guess what spaces are not
> useful and trim them"
> 
> Save Tab: check "Indent when no DTD"
> 
> Save Tab: set indentation to 2 (or any value > 0)
> 
> 
> 


-- 
Leos Literak
http://AbcLinuxu.cz - tady je tucnakum hej!


Reply via email to