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

            Bug ID: 174545
           Summary: Direction autodetection result outlasts text which
                    caused it
           Product: LibreOffice
           Version: 27.2.0.0 alpha0+ master
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Reproduction instructions:

1. Create a Writer document
2. Set the Default Page Style's direction to rl-tb (i.e. RTL)
3. Set the Default Paragraph Style to inherit the direction, and to auto-detect
direction
4. Enter three paragraphs of text:

שלום
a-
להתראות

(where line breaks here are paragraph breaks you will enter in LO)
5. Note the paragraph directions.
6. Delete the letter "a" from the beginning of paragraph 2

Expected results:

After step 5, paragraph directions are RTL, LTR, RTL
After step 6, paragraph directions are RTL, RTL, RTL

(as - is a neutral character w.r.t. direction)

Actual results:

After step 5, paragraph directions are RTL, LTR, RTL
After step 6, paragraph directions are RTL, LTR, RTL

even though there are no strong-LTR characters left on paragraph 2, and the
context is RTL paragraphs both before and after.

I should also mention that if you try same thing but with

hello
א-
goodbye

and then delete the א, the middle paragraph will remain LTR.

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

Reply via email to