https://bugs.documentfoundation.org/show_bug.cgi?id=150613

--- Comment #11 from Justin L <jl...@mail.com> ---
(In reply to William Friedman from comment #10)
> (In reply to Justin L from comment #8)
> How does a new document opened from that
> template know to set that setting to true?
It happens automatically during save time. All internal settings are saved into
the file. I wouldn't expect this result unless your template specifies it as
true, since the internal setting is false. It is only set to true when loading
DOC/DOCX/RTF formats.

sw/source/core/doc/DocumentSettingManager.cxx:   
mApplyParagraphMarkFormatToNumbering(false),

> Two more issues:
> 1) Is there a setting available through the UI to change
> ApplyParagraphMarkFormatToNumbering to false?
This isn't something that would normally be exposed. I didn't find anything.

> 2) If a document that was once saved in doc/docx is later saved in .odt or
> .ott format, is there a reason not to have
> ApplyParagraphMarkFormatToNumbering be automatically set to false?
Absolutely! The whole point of this is to make sure that the document continues
to remain compatible no matter what format it is saved in. If it looked a
certain way in DOC format, if you save it as ODT you normally still want it to
look the same. Normally once these are set you never want them to change.

P.S. This section of code bothering you no longer applies to DOCX. There is a
TODO to have it not apply to DOC/RTF as well - although it is complex so likely
someone needs to fund it in order for it to happen.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to