https://bugs.documentfoundation.org/show_bug.cgi?id=162305
Bug ID: 162305 Summary: When opening a plain text file, paragraph directions and alignment are wrong Product: LibreOffice Version: 24.2.0.0 alpha1+ Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: medium Component: Writer Assignee: libreoffice-bugs@lists.freedesktop.org Reporter: eyalr...@gmx.com Suppose I open a text file with the following 5 lines of text: -------------- The quick brown fox jumped over the lazy dog. "אל תדאג", אמר הדג, "יש לי עורך-דין כריש!" -------------- This file should will have either 2 or 5 paragraphs (depending on whether a paragraph is considered to be broken at line end or at an empty line); LO goes for paragraph-per-line, let's go with that. Now, the paragraphs should have the following directions and alignments: Index | Direction | Alignment ------------------------------- 0 | LTR | Left 1 | LTR | Left 2 | LTR/RTL | N/A <- empty line, app's choice 3 | RTL | Right 4 | RTL | Right And indeed, that's what happens when you open the file in a text editor like MousePad or gedit. With LO , however, we get a result that's not even inconsistent, but depends on the locale (!) With en_IL: All lines are LTR and left-aligned With he_IL: All lines are RTL and left-aligned That's just wrong: * Paragraph direction should not depend on locale, except if the paragraph only has direction-neutral character (and even then, preceding and succeeding locale consensus should be preferred, and otherwise it's still probably better to take the previous paragraph's direction) * Alignment should follow direction - RTL -> Right, LTR -> Left * Direction should be set according to paragraph contents (see bug 162120) -- You are receiving this mail because: You are the assignee for the bug.