<DOCTYPE html>
Test1: No space This is a testing for BiDi layout issues. This is a testing for BiDi layout issues.

This is a testing for BiDi layout issues.

This is a testing for BiDi layout issues.
Test2: 3 spaces at the end This is a testing for BiDi layout issues. This is a testing for BiDi layout issues.

This is a testing for BiDi layout issues.

This is a testing for BiDi layout issues.
Test3: 3 spaces at the beginning This is a testing for BiDi layout issues. This is a testing for BiDi layout issues.

This is a testing for BiDi layout issues.

This is a testing for BiDi layout issues.
Test4: 3 spaces at the end and the beginning This is a testing for BiDi layout issues. This is a testing for BiDi layout issues.

This is a testing for BiDi layout issues.

This is a testing for BiDi layout issues.