forked from mirrors/Fedilab
		
	Respect blank spaces between words
This commit is contained in:
		
							parent
							
								
									b428cf4de9
								
							
						
					
					
						commit
						3a1671ae38
					
				
					 2 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -185,6 +185,8 @@ public class SpannableHelper {
 | 
			
		|||
                    urlDetails.put(url, urlText);
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
            text = text.trim().replaceAll("\\s{3}", "   ");
 | 
			
		||||
            text = text.trim().replaceAll("\\s{2}", "  ");
 | 
			
		||||
            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N)
 | 
			
		||||
                initialContent = new SpannableString(Html.fromHtml(text, Html.FROM_HTML_MODE_LEGACY));
 | 
			
		||||
            else
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,6 +4,7 @@ Added:
 | 
			
		|||
 | 
			
		||||
Changed:
 | 
			
		||||
- Display translate button only when language is different
 | 
			
		||||
- Respect blank spaces between words in messages
 | 
			
		||||
 | 
			
		||||
Fixed:
 | 
			
		||||
- Behavior with cw toggle
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue