Issue 70269 - White spaces filtering in header and TOC
Summary: White spaces filtering in header and TOC
Status: UNCONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: formatting (show other issues)
Version: OOo 2.0.3
Hardware: PC Windows Server 2003
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-10 14:57 UTC by drwicked
Modified: 2017-04-19 13:39 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Multiple line Heading in TOC (14.68 KB, application/vnd.oasis.opendocument.text)
2017-04-19 13:38 UTC, Gabi Kis
no flags Details
Example of stripped <LF> in word 2013 (27.73 KB, image/png)
2017-04-19 13:39 UTC, Gabi Kis
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description drwicked 2006-10-10 14:57:35 UTC
According to Ukrainian requirements h1 should be formated like
--
Part 1.<CR>
Header text. 
--
but TOC should be formated as(without caret return)
--
Part 1. Header text. 
--
(BTW MSWord do this correct)
in addition it'll be a good idea to allow insert <CR> as divide character
Comment 1 michael.ruess 2006-10-11 06:30:18 UTC
Reassigned to ES.
Comment 2 eric.savary 2006-10-11 11:05:56 UTC
Reassigned
Comment 3 Gabi Kis 2017-04-19 13:37:34 UTC
In the description of the bug it should be line feed (<LF> or <Shift+Enter>) instead of carriage return (<CR> or <Enter>).

This applies to all heading levels (1, 2 and 3). It limits the editor not to use headings on multiple lines in case in the TOC it expects it to be in a single line.

No straightforward workaround in case the editor wants the title on multiple lines and expects a single line in the table of contents. 
In case the editor wants to have a title on multiple lines in the table of contents then carriage return can be used in the title and that will be propagated in the TOC.

The line feed <Shift+Enter> solution for multiple line headings is used as a "standard" in desktop editors, please see:
https://wordribbon.tips.net/T013231_Two-Line_Headings_in_a_TOC
https://answers.microsoft.com/en-us/msoffice/forum/msoffice_word-mso_other/help-with-two-line-heading-in-toc/b5846c37-7dd9-43c4-964d-e598d46f19a0
http://wordfaqs.ssbarnhill.com/TOCTips.htm

This is an issue with no straightforward solution for open office users and community:
https://forum.openoffice.org/en/forum/viewtopic.php?f=71&t=5481
https://forum.openoffice.org/en/forum/viewtopic.php?f=71&t=539
https://forum.openoffice.org/en/forum/viewtopic.php?t=61311

I'll attach the writer document and a screenshot from word 2013 with the same text formatting.
Comment 4 Gabi Kis 2017-04-19 13:38:38 UTC
Created attachment 86009 [details]
Multiple line Heading in TOC
Comment 5 Gabi Kis 2017-04-19 13:39:26 UTC
Created attachment 86010 [details]
Example of stripped <LF> in word 2013