Indenting: | "\n" |
|   "<#selection-anchor>hello<#selection-focus>"
| "\n"

yields:
| "\n"
| 
| style="margin: 0 0 0 40px; border: none; padding: 0px;" |
|     "<#selection-anchor>hello<#selection-focus>"
| "\n"

Indenting:
| "\n"
| 
|   "<#selection-anchor>hello\n\nworld\n\nwebkit<#selection-focus>\n"
| "\n"

yields:
| "\n"
| 
| style="margin: 0 0 0 40px; border: none; padding: 0px;" |
|     "<#selection-anchor>hello"
|   
|     "\n"
|   
|     "world"
|   
|     "\n"
|   
|     "webkit<#selection-focus>"
| "\n"

Indenting:
| "\n"
| 
|   "<#selection-anchor>hello\nworld\nwebkit<#selection-focus>\n"
| "\n"

yields:
| "\n"
| 
| style="margin: 0 0 0 40px; border: none; padding: 0px;" |
|     "<#selection-anchor>hello"
|   
|     "world"
|   
|     "webkit<#selection-focus>"
| "\n"

Indenting:
| "\n"
| 
|   "<#selection-anchor>hello<#selection-focus>\n\nworld\n"
| "\n"

yields:
| "\n"
| 
| style="margin: 0 0 0 40px; border: none; padding: 0px;" |
|     "<#selection-anchor>hello<#selection-focus>"
| 
|   "\nworld\n"
| "\n"

Indenting:
| "\n"
| 
|   "hello\n<#selection-caret>\nworld\n"
| "\n"

yields:
| "\n"
| 
|   "hello<#selection-caret>\n"
| 
| style="margin: 0 0 0 40px; border: none; padding: 0px;" |
|     "\n"
| 
|   "world\n"
| "\n"

Indenting:
| "\n"
| 
|   "hello\n\n<#selection-anchor>worl<#selection-focus>d\n"
| "\n"

yields:
| "\n"
| 
|   "hello\n<#selection-anchor>\n"
| 
| style="margin: 0 0 0 40px; border: none; padding: 0px;" |
|     "worl<#selection-focus>d"
| "\n"